Click or drag to resize

RichTextShape Class

Represents a shape that can contain rich text content.
Inheritance Hierarchy
System Object
Spire.Xls.Core.Spreadsheet RichTextShape

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

The RichTextShape type exposes the following members.

Properties
Name Description
Public property DefaultFont
Gets or sets the default font for the workbook.
Public property FormattingRunsCount
Gets the count of formatting runs.
Public property IsFormatted
Gets a value indicating whether the shape is formatted with rich text.
Public property Parent
Gets the parent object of the current instance.
Public property RtfText
Gets the RTF text content.
Public property Text
Gets or sets the text content of the shape.
Top
Methods
Name Description
Public method Append
Appends text to the shape's text and sets the font for the appended text.
Public method BeginUpdate
Begins the update process for a control or container.
Public method Clear
Clears the text in the shape converter.
Public method ClearFormatting
Clears the formatting of the characters in the shape.
Public method EndUpdate
Ends the update process of the control, applying any changes made during the update.
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
Retrieves the font at the specified index.
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetSpace
Retrieves the spacing between characters for a specific formatting run.
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 the font for a range of text in a shape's text object. Validates the input parameters, checks for existing font settings, and updates the font settings accordingly.
Public method SetSpace
Sets the space value for a specific formatting run.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
See Also