RtfDomParser.RTFReader.LoadRTFText C# (CSharp) 메소드

LoadRTFText() 공개 메소드

load rtf text
public LoadRTFText ( string strText ) : bool
strText string RTF text
리턴 bool
        public bool LoadRTFText( string strText )
        {
            //myTokenStack.Clear();
            myCurrentToken = null;
            if( strText != null && strText.Length > 3 )
            {
                myReader = new System.IO.StringReader( strText );
                myLex = new RTFLex( myReader );
                return true ;
            }
            return false ;
        }

Usage Example

예제 #1
0
 /// <summary>
 /// load rtf text
 /// </summary>
 /// <param name="strText">text in rtf format</param>
 public void LoadRTFText(string strText)
 {
     myEncoding = null;
     using (var reader = new RTFReader())
     {
         if (reader.LoadRTFText(strText))
         {
             Load(reader);
             reader.Close();
         }
         reader.Close();
     }
 }
All Usage Examples Of RtfDomParser.RTFReader::LoadRTFText