RtfDomParser.RTFWriter.Close C# (CSharp) Method

Close() public method

close
public Close ( ) : void
return void
        public void Close()
        {
            if(this.intGroupLevel > 0 )
                throw new System.Exception("Some group does not finish");
            if( myWriter != null )
            {
                myWriter.Close();
                myWriter = null;
            }
        }

Usage Example

Esempio n. 1
0
        /// <summary>
        /// Test generate rtf file
        /// after execute this function you can open c:\a.rtf
        /// </summary>
        internal static void TestWriteFile( )
        {
            RTFWriter w = new RTFWriter("c:\\a.rtf");

            TestBuildRTF(w);
            w.Close();
            System.Windows.Forms.MessageBox.Show("OK , you can open file c:\\a.rtf 了.");
        }
All Usage Examples Of RtfDomParser.RTFWriter::Close