Class RtfTextWriter
Rtf text writer used for converting rtf string into rtf format.
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.Implementation
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public class RtfTextWriter : TextWriter, IDisposable
Constructors
RtfTextWriter()
Declaration
public RtfTextWriter()
RtfTextWriter(bool)
Declaration
public RtfTextWriter(bool enableFormatting)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | enableFormatting |
RtfTextWriter(TextWriter)
Declaration
public RtfTextWriter(TextWriter underlyingWriter)
Parameters
| Type | Name | Description |
|---|---|---|
| TextWriter | underlyingWriter |
RtfTextWriter(TextWriter, bool)
Declaration
public RtfTextWriter(TextWriter underlyingWriter, bool enableFormatting)
Parameters
| Type | Name | Description |
|---|---|---|
| TextWriter | underlyingWriter | |
| bool | enableFormatting |
Properties
Encoding
Returns current Encoding.
Declaration
public override Encoding Encoding { get; }
Property Value
| Type |
|---|
| Encoding |
Overrides
Escape
Declaration
public bool Escape { get; set; }
Property Value
| Type |
|---|
| bool |
Methods
AddColor(Color)
Adds color to the colors table.
Declaration
public int AddColor(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | color |
Returns
| Type |
|---|
| int |
AddFont(Font)
Adds new font to the collection.
Declaration
public int AddFont(Font font)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font | Font to add. |
Returns
| Type | Description |
|---|---|
| int | Index of the font. |
GetImageRTF(string)
Gets the image RTF.
Declaration
protected string GetImageRTF(string rtf)
Parameters
| Type | Name | Description |
|---|---|---|
| string | rtf | The RTF. |
Returns
| Type |
|---|
| string |
OutputTabs()
Declaration
protected virtual void OutputTabs()
ToString()
Returns string that implement current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | Returns string that implement current object. |
Overrides
Write(bool)
Writes a bool to the text stream.
Declaration
public override void Write(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | Bool param to write. |
Overrides
Write(char)
Writes a character to the text stream.
Declaration
public override void Write(char value)
Parameters
| Type | Name | Description |
|---|---|---|
| char | value | Char value to write. |
Overrides
Write(char[])
Writes a array of characters to the text stream.
Declaration
public override void Write(char[] buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| char[] | buffer | Array param to write. |
Overrides
Write(char[], int, int)
Writes a subarray of characters to the text stream.
Declaration
public override void Write(char[] buffer, int index, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| char[] | buffer | The character array to write data from. |
| int | index | Starting index in the buffer. |
| int | count | The number of characters to write. |
Overrides
Write(double)
Writes a double to the text stream.
Declaration
public override void Write(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| double | value | Double param to write. |
Overrides
Write(int)
Writes a int value to the text stream.
Declaration
public override void Write(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | Int value to write. |
Overrides
Write(long)
Writes a long value to the text stream.
Declaration
public override void Write(long value)
Parameters
| Type | Name | Description |
|---|---|---|
| long | value | Long value to write. |
Overrides
Write(object)
Writes a object to the text stream.
Declaration
public override void Write(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | Object value to write. |
Overrides
Write(float)
Writes a float value to the text stream.
Declaration
public override void Write(float value)
Parameters
| Type | Name | Description |
|---|---|---|
| float | value | Float value to write. |
Overrides
Write(string)
Writes a string to the text stream.
Declaration
public override void Write(string s)
Parameters
| Type | Name | Description |
|---|---|---|
| string | s | String to write. |
Overrides
Write(uint)
Writes a uint value to the text stream.
Declaration
[CLSCompliant(false)]
public override void Write(uint value)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | value | Uint value to write. |
Overrides
WriteBackColorAttribute(Color)
Declaration
public void WriteBackColorAttribute(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | color |
WriteColorTable()
Writes colors table into inner text writer.
Declaration
public void WriteColorTable()
WriteFont(Font)
Declaration
public void WriteFont(Font font)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font |
WriteFont(IFont)
Declaration
public void WriteFont(IFont font)
Parameters
| Type | Name | Description |
|---|---|---|
| IFont | font |
WriteFontAttribute(Font)
Declaration
public void WriteFontAttribute(Font font)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font |
WriteFontItalicBoldStriked(Font)
Declaration
public void WriteFontItalicBoldStriked(Font font)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font |
WriteFontTable()
Writes fonts table into inner text writer.
Declaration
public void WriteFontTable()
WriteForeColorAttribute(Color)
Declaration
public void WriteForeColorAttribute(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | color |
WriteLine()
Writes a line terminator to the text stream.
Declaration
public override void WriteLine()
Overrides
WriteLine(bool)
Writes the text representation of a Boolean followed by a line terminator to the text stream.
Declaration
public override void WriteLine(bool value)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | value | The Boolean to write. |
Overrides
WriteLine(char)
Writes a character followed by a line terminator to the text stream.
Declaration
public override void WriteLine(char value)
Parameters
| Type | Name | Description |
|---|---|---|
| char | value | The character to write to the text stream. |
Overrides
WriteLine(char[])
Writes an array of characters followed by a line terminator to the text stream.
Declaration
public override void WriteLine(char[] buffer)
Parameters
| Type | Name | Description |
|---|---|---|
| char[] | buffer | The character array from which data is read. |
Overrides
WriteLine(char[], int, int)
Writes a subarray of characters followed by a line terminator to the text stream.
Declaration
public override void WriteLine(char[] buffer, int index, int count)
Parameters
| Type | Name | Description |
|---|---|---|
| char[] | buffer | The character array from which data is read. |
| int | index | The index into buffer at which to begin reading. |
| int | count | The maximum number of characters to write. |
Overrides
WriteLine(double)
Writes the text representation of a 8-byte floating-point value followed by a line terminator to the text stream.
Declaration
public override void WriteLine(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| double | value | The 8-byte floating-point value to write. |
Overrides
WriteLine(int)
Writes the text representation of a 4-byte signed integer followed by a line terminator to the text stream.
Declaration
public override void WriteLine(int value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | value | The 4-byte signed integer to write. |
Overrides
WriteLine(long)
Writes the text representation of an 8-byte signed integer followed by a line terminator to the text stream.
Declaration
public override void WriteLine(long value)
Parameters
| Type | Name | Description |
|---|---|---|
| long | value | The 8-byte signed integer to write. |
Overrides
WriteLine(object)
Writes the text representation of an object by calling ToString on this object, followed by a line terminator to the text stream.
Declaration
public override void WriteLine(object value)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value | The object to write. |
Overrides
WriteLine(float)
Writes the text representation of a 4-byte floating-point value followed by a line terminator to the text stream.
Declaration
public override void WriteLine(float value)
Parameters
| Type | Name | Description |
|---|---|---|
| float | value | The 4-byte floating-point value to write. |
Overrides
WriteLine(string)
Writes a string followed by a line terminator to the text stream.
Declaration
public override void WriteLine(string s)
Parameters
| Type | Name | Description |
|---|---|---|
| string | s | The string to write. |
Overrides
WriteLine(string, params object[])
Writes out a formatted string and a new line, using the same semantics as Format.
Declaration
public override void WriteLine(string format, params object[] arg)
Parameters
| Type | Name | Description |
|---|---|---|
| string | format | The formatting string. |
| object[] | arg | The object array to write into format string. |
Overrides
WriteLine(uint)
Writes the text representation of a 4-byte unsigned integer followed by a line terminator to the text stream.
Declaration
[CLSCompliant(false)]
public override void WriteLine(uint value)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | value | The 4-byte unsigned integer to write. |
Overrides
WriteLineNoTabs(string)
Declaration
public void WriteLineNoTabs(string s)
Parameters
| Type | Name | Description |
|---|---|---|
| string | s |
WriteStrikeThrough(StrikeThroughStyle)
Declaration
public void WriteStrikeThrough(StrikeThroughStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| StrikeThroughStyle | style |
WriteSubSuperScript(FontImpl)
Declaration
public void WriteSubSuperScript(FontImpl font)
Parameters
| Type | Name | Description |
|---|---|---|
| FontImpl | font |
WriteTag(RtfTags)
Declaration
public void WriteTag(RtfTags tag)
Parameters
| Type | Name | Description |
|---|---|---|
| RtfTags | tag |
WriteTag(RtfTags, params object[])
Declaration
public void WriteTag(RtfTags tag, params object[] arrParams)
Parameters
| Type | Name | Description |
|---|---|---|
| RtfTags | tag | |
| object[] | arrParams |
WriteText(Font, Color, Color, string)
Declaration
public void WriteText(Font font, Color foreColor, Color backColor, string strText)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font | |
| Color | foreColor | |
| Color | backColor | |
| string | strText |
WriteText(Font, Color, string)
Declaration
public void WriteText(Font font, Color foreColor, string strText)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font | |
| Color | foreColor | |
| string | strText |
WriteText(Font, string)
Declaration
public void WriteText(Font font, string strText)
Parameters
| Type | Name | Description |
|---|---|---|
| Font | font | |
| string | strText |
WriteText(IFont, string)
Declaration
public void WriteText(IFont font, string strText)
Parameters
| Type | Name | Description |
|---|---|---|
| IFont | font | |
| string | strText |
WriteUnderline(FontImpl)
Declaration
public void WriteUnderline(FontImpl font)
Parameters
| Type | Name | Description |
|---|---|---|
| FontImpl | font |
WriteUnderlineAttribute()
Declaration
public void WriteUnderlineAttribute()
WriteUnderlineAttribute(UnderlineStyle)
Declaration
public void WriteUnderlineAttribute(UnderlineStyle style)
Parameters
| Type | Name | Description |
|---|---|---|
| UnderlineStyle | style |