Back to Devexpress

RichTextString Members

officefileapi-devexpress-dot-spreadsheet-dot-richtextstring-dot-underscore-members.md

latest4.8 KB
Original Source

RichTextString Members

Rich formatted text in a cell.

Constructors

NameDescription
RichTextString()Initializes a new instance of the RichTextString class with the default settings.

Properties

NameDescription
IsEmptyGets a value indicating whether the rich text in a cell is an empty string.
IsPlainTextGets a value indicating whether the rich text in a cell is a plain rather than a formatted text.
LengthReturns the number of characters in a rich text string.
RunsProvides access to a collection of text runs that compose rich text in a cell.
TextGets or sets the full text of a cell.

Methods

NameDescription
AddTextRun(String, RichTextRunFont)Appends a new text run to the current rich text string.
Characters()Returns a range of all characters in the current rich text string.
Characters(Int32, Int32)Returns a range of characters that starts at the specified position and has the specified length.
Characters(Int32)Returns a range of characters that starts at the specified position and continues to the end of the rich text string.
Equals(RichTextString)Determines whether the specified object is equal to the current RichTextString instance.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetType()Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
ToString()Returns a string that represents the current object. Inherited from Object.

See Also

RichTextString Class

DevExpress.Spreadsheet Namespace