C# Class RtfDomParser.RTFWriter

RTF text writer , this source code evolution from other software.
Inheritance: System.IDisposable
Mostrar archivo Open project: SourceCodeBackup/RtfDomParser Class Usage Examples

Public Methods

Method Description
Close ( ) : void

close

Dispose ( ) : void

dispose instance

Flush ( ) : void
RTFWriter ( System w ) : System

Initialize instance

RTFWriter ( string strFileName ) : System

Initialize instance

WriteByte ( byte b ) : void

write a byte data

WriteBytes ( byte bs ) : void

write binary data

WriteEndGroup ( ) : void

end write group

WriteGroup ( string KeyWord ) : void

write completed group wich one keyword

WriteKeyword ( string Keyword ) : void

write keyword

WriteKeyword ( string Keyword, bool Ext ) : void

write keyword

WriteRaw ( string txt ) : void

write raw text

WriteStartGroup ( ) : void

begin write group

WriteText ( string Text ) : void

write plain text

WriteText ( string Text, bool AutoAddWhitespace ) : void

write plain text, can choose write a white space automatic

WriteUnicodeText ( string text ) : void

Private Methods

Method Description
FixIndent ( ) : void
InnerWrite ( char c ) : void
InnerWrite ( string txt ) : void
InnerWriteChar ( char c ) : void
InnerWriteNewLine ( ) : void
TestBuildRTF ( RTFWriter w ) : void

Test to generate a little rtf document

TestClipboard ( ) : void

Test generate rtf text and copy to windows clipboard after execute this function , you can paste rtf text in MS Word

TestWriteFile ( ) : void

Test generate rtf file after execute this function you can open c:\a.rtf

WriteIndent ( ) : void

Method Details

Close() public method

close
public Close ( ) : void
return void

Dispose() public method

dispose instance
public Dispose ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

RTFWriter() public method

Initialize instance
public RTFWriter ( System w ) : System
w System text writer
return System

RTFWriter() public method

Initialize instance
public RTFWriter ( string strFileName ) : System
strFileName string file name
return System

WriteByte() public method

write a byte data
public WriteByte ( byte b ) : void
b byte byte data
return void

WriteBytes() public method

write binary data
public WriteBytes ( byte bs ) : void
bs byte binary data
return void

WriteEndGroup() public method

end write group
public WriteEndGroup ( ) : void
return void

WriteGroup() public method

write completed group wich one keyword
public WriteGroup ( string KeyWord ) : void
KeyWord string keyword
return void

WriteKeyword() public method

write keyword
public WriteKeyword ( string Keyword ) : void
Keyword string keyword
return void

WriteKeyword() public method

write keyword
public WriteKeyword ( string Keyword, bool Ext ) : void
Keyword string keyword
Ext bool whether extern key word
return void

WriteRaw() public method

write raw text
public WriteRaw ( string txt ) : void
txt string text
return void

WriteStartGroup() public method

begin write group
public WriteStartGroup ( ) : void
return void

WriteText() public method

write plain text
public WriteText ( string Text ) : void
Text string �ı�ֵ
return void

WriteText() public method

write plain text, can choose write a white space automatic
public WriteText ( string Text, bool AutoAddWhitespace ) : void
Text string text
AutoAddWhitespace bool wirte a white space automatic
return void

WriteUnicodeText() public method

public WriteUnicodeText ( string text ) : void
text string
return void