C# Класс RtfDomParser.RTFWriter

RTF text writer , this source code evolution from other software.
Наследование: System.IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Close() публичный Метод

close
public Close ( ) : void
Результат void

Dispose() публичный Метод

dispose instance
public Dispose ( ) : void
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

RTFWriter() публичный Метод

Initialize instance
public RTFWriter ( System w ) : System
w System text writer
Результат System

RTFWriter() публичный Метод

Initialize instance
public RTFWriter ( string strFileName ) : System
strFileName string file name
Результат System

WriteByte() публичный Метод

write a byte data
public WriteByte ( byte b ) : void
b byte byte data
Результат void

WriteBytes() публичный Метод

write binary data
public WriteBytes ( byte bs ) : void
bs byte binary data
Результат void

WriteEndGroup() публичный Метод

end write group
public WriteEndGroup ( ) : void
Результат void

WriteGroup() публичный Метод

write completed group wich one keyword
public WriteGroup ( string KeyWord ) : void
KeyWord string keyword
Результат void

WriteKeyword() публичный Метод

write keyword
public WriteKeyword ( string Keyword ) : void
Keyword string keyword
Результат void

WriteKeyword() публичный Метод

write keyword
public WriteKeyword ( string Keyword, bool Ext ) : void
Keyword string keyword
Ext bool whether extern key word
Результат void

WriteRaw() публичный Метод

write raw text
public WriteRaw ( string txt ) : void
txt string text
Результат void

WriteStartGroup() публичный Метод

begin write group
public WriteStartGroup ( ) : void
Результат void

WriteText() публичный Метод

write plain text
public WriteText ( string Text ) : void
Text string �ı�ֵ
Результат void

WriteText() публичный Метод

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
Результат void

WriteUnicodeText() публичный Метод

public WriteUnicodeText ( string text ) : void
text string
Результат void