C# Class Alexandria.RichTextBuilder

A builder for RTF text.
Mostra file Open project: Burton-Radons/Alexandria

Public Methods

Method Description
Append ( char value ) : void

Add a character to the end, escaping invalid characters as necessary.

Append ( object value ) : void

Append the string representation of the object. If value is null, then nothing is appended.

Append ( string text ) : void

Add some plain text, escaping characters as necessary.

AppendFormat ( IFormatProvider provider, string format ) : void

Append formatted text.

AppendFormat ( string format ) : void

Append formatted text.

AppendFormat ( string format, object arg0 ) : void

Append formatted text.

AppendFormat ( string format, object arg0, object arg1 ) : void

Append formatted text.

AppendFormat ( string format, object arg0, object arg1, object arg2 ) : void

Append formatted text.

RichTextBuilder ( ) : System

Initialise the builder.

ToString ( ) : string

Convert to a the RTF text.

Private Methods

Method Description
EmitCodeIndex ( StringBuilder builder, string code, int index ) : void
EmitCodeIndex ( string code, int index ) : void
EmitColorProperty ( string code, Color &property, Color value ) : void
EmitSData ( IList data ) : void
EmitSData ( IList data, int offset, int length ) : void
EmitSData ( StringBuilder builder, IList data ) : void
EmitSData ( StringBuilder builder, IList data, int offset, int length ) : void
GetColorIndex ( Color color ) : int
IsStringSafe ( string text ) : bool
UpdateFontFormattingProperties ( ) : void

Method Details

Append() public method

Add a character to the end, escaping invalid characters as necessary.
public Append ( char value ) : void
value char
return void

Append() public method

Append the string representation of the object. If value is null, then nothing is appended.
public Append ( object value ) : void
value object
return void

Append() public method

Add some plain text, escaping characters as necessary.
public Append ( string text ) : void
text string
return void

AppendFormat() public method

Append formatted text.
public AppendFormat ( IFormatProvider provider, string format ) : void
provider IFormatProvider
format string
return void

AppendFormat() public method

Append formatted text.
public AppendFormat ( string format ) : void
format string
return void

AppendFormat() public method

Append formatted text.
public AppendFormat ( string format, object arg0 ) : void
format string
arg0 object
return void

AppendFormat() public method

Append formatted text.
public AppendFormat ( string format, object arg0, object arg1 ) : void
format string
arg0 object
arg1 object
return void

AppendFormat() public method

Append formatted text.
public AppendFormat ( string format, object arg0, object arg1, object arg2 ) : void
format string
arg0 object
arg1 object
arg2 object
return void

RichTextBuilder() public method

Initialise the builder.
public RichTextBuilder ( ) : System
return System

ToString() public method

Convert to a the RTF text.
public ToString ( ) : string
return string