Close() public method

public Close ( ) : void
return void
Esempio n. 1
0
 /// <summary>
 /// load rtf file
 /// </summary>
 /// <param name="strFileName">file name</param>
 public void Load(string strFileName)
 {
     myEncoding = null;
     using (var reader = new RTFReader())
     {
         if (reader.LoadRTFFile(strFileName))
         {
             Load(reader);
             reader.Close();
         }
         reader.Close();
     }
 }
Esempio n. 2
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();
     }
 }
 /// <summary>
 /// load rtf text
 /// </summary>
 /// <param name="strText">text in rtf format</param>
 public void LoadRTFText( string strText )
 {
     myEncoding = null ;
     using( RTFReader reader = new RTFReader())
     {
         if( reader.LoadRTFText( strText ))
         {
             Load( reader );
             reader.Close();
         }
         reader.Close();
     }
 }
 /// <summary>
 /// load rtf file
 /// </summary>
 /// <param name="strFileName">file name</param>
 public void Load( string strFileName )
 {
     myEncoding = null ;
     using( RTFReader reader = new RTFReader() )
     {
         if( reader.LoadRTFFile( strFileName ) )
         {
             Load( reader );
             reader.Close();
         }
         reader.Close();
     }
 }
        /// <summary>
        /// load rtf file
        /// </summary>
        public void Load(Stream stream)
        {
            _myEncoding = null;
            using (var reader = new RTFReader())
            {
                reader.LoadStream(stream);

                Load(reader);
                reader.Close();
            }
        }