Click or drag to resize

RichTextString Class

Represents a string that supports rich text formatting.
Inheritance Hierarchy
System Object
Spire.Xls.Core.Spreadsheet CommonWrapper
Spire.Xls.Core.Spreadsheet RichTextString
Spire.Xls.Core.Spreadsheet RangeRichTextString

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public class RichTextString : CommonWrapper, 
	IRichTextString, IExcelApplication, IOptimizedUpdate

The RichTextString type exposes the following members.

Properties
Name Description
Protected property BeginCallsCount
Returns number of begin update calls that have no corresponding end update. Read-only.
(Inherited from CommonWrapper .)
Public property DefaultFont
Gets or sets the default font for the workbook.
Public property IsFormatted
Indicates whether rich text string has formatting runs. Read-only.
Public property Parent
Returns parent object. Read-only.
Public property RtfText Obsolete.
Returns text in rtf format. Read-only.
Public property Text
Gets / sets text of the string.
Top
Methods
Name Description
Protected method AddFont
Adds a font to the worksheet.
Public method Append
Appends rich text string with specified text and font.
Public method BeginUpdate
This method should be called before several updates to the object will take place.
(Inherited from CommonWrapper .)
Public method Clear
Clears text and formatting.
Public method ClearFormatting
Clears string formatting.
Public method Clone
Creates a copy of the current object.
(Inherited from CommonWrapper .)
Public method EndUpdate
This method should be called after several updates to the object.
(Inherited from CommonWrapper .)
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetFont
Returns font which is applied to character at the specified position.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method SetFont
Sets font for range of characters.
Protected method SetRichTextFont
Sets the font for a specified range of text in a rich text string.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also