[]
        
(Showing Draft Content)

GrapeCity.Spreadsheet.RichText

RichText Class

Represents the rich text.

Inheritance
RichText
Namespace: GrapeCity.Spreadsheet
Assembly: GrapeCity.Spreadsheet.dll
Syntax
public sealed class RichText : IEquatable<RichText>, IConvertible, ICloneable<RichText>
Public NotInheritable Class RichText
    Implements IEquatable(Of RichText), IConvertible, ICloneable(Of RichText)

Constructors

Name Description
RichText(string)

Initializes a new instance of the RichText class.

Properties

Name Description
Length

Gets the length of text.

RunCount

Gets the total number of runs in the rich text.

Text

Gets the string value represents the plain text of this rich text.

Methods

Name Description
Append(string)

Appends the text at the end of this rich text using the last run formatting.

Append(string, Font)

Appends the text run at the end of this rich text.

ClearFormat()

Clears format of all text runs.

ClearFormat(int, int)

Clears the format of the specified text run.

Clone()

Creates a new RichText object that is a copy of the current RichText instance.

Equals(RichText)

Determines whether the specified RichText object is equal to the current RichText object.

Equals(object)

Determines whether the specified object is equal to this instance.

Format(Font)

Formats the whole text with the specified font.

Format(int, int, Font)

Formats the specified text run with the specified font.

GetFormat(int)

Gets the font at the specified position.

GetHashCode()

Returns a hash code for this instance.

GetRun(int, out int, out int, out Font)

Gets the attributes of the specified run.

Overwrite(int, int, string)

Overwrites the specified range of this rich text by a new text.

Parse(string)

Parse RichText object from xml source, represent by string text.

ToString()

Returns a string that represents this instance.