The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

RichTextString Members

Rich formatted text in a cell.

Constructors

Name Description
RichTextString()

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

Properties

Name Description
IsEmpty

Gets a value indicating whether the rich text in a cell is an empty string.

IsPlainText

Gets a value indicating whether the rich text in a cell is a plain rather than a formatted text.

Length

Returns the number of characters in a rich text string.

Runs

Provides access to a collection of text runs that compose rich text in a cell.

Text

Gets or sets the full text of a cell.

Methods

Name Description
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)

Returns a range of characters that starts at the specified position and continues to the end of the rich text string.

Characters(Int32, Int32)

Returns a range of characters that starts at the specified position and has the specified length.

Equals(Object) Determines whether the specified object is equal to the current object.
(Inherited from Object)
Equals(Object, Object) static Determines whether the specified object instances are considered equal.
(Inherited from Object)
Equals(RichTextString)

Determines whether the specified object is equal to the current RichTextString instance.

GetHashCode() Serves as the default hash function.
(Inherited from Object)
GetType() Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone() Creates a shallow copy of the current Object.
(Inherited from Object)
ReferenceEquals(Object, Object) static Determines 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