Itenso.Rtf.Parser.RtfParser.FlushText C# (CSharp) Method

FlushText() private method

private FlushText ( ) : void
return void
        private void FlushText()
        {
            if ( curText.Length > 0 )
            {
                if ( level == 0 )
                {
                    throw new RtfStructureException( Strings.TextOnRootLevel( curText.ToString() ) );
                }
                NotifyTextFound( new RtfText( curText.ToString() ) );
                curText.Remove( 0, curText.Length );
            }
        }