Itenso.Rtf.Interpreter.RtfUserPropertyBuilder.DoVisitGroup C# (CSharp) Method

DoVisitGroup() protected method

protected DoVisitGroup ( IRtfGroup group ) : void
group IRtfGroup
return void
        protected override void DoVisitGroup( IRtfGroup group )
        {
            switch ( group.Destination )
            {
                case RtfSpec.TagUserProperties:
                    VisitGroupChildren( group );
                    break;
                case null:
                    Reset();
                    VisitGroupChildren( group );
                    collectedProperties.Add( CreateProperty() );
                    break;
                case RtfSpec.TagUserPropertyName:
                    textBuilder.Reset();
                    textBuilder.VisitGroup( group );
                    propertyName = textBuilder.CombinedText;
                    break;
                case RtfSpec.TagUserPropertyValue:
                    textBuilder.Reset();
                    textBuilder.VisitGroup( group );
                    staticValue = textBuilder.CombinedText;
                    break;
                case RtfSpec.TagUserPropertyLink:
                    textBuilder.Reset();
                    textBuilder.VisitGroup( group );
                    linkValue = textBuilder.CombinedText;
                    break;
            }
        }