Click or drag to resize

IRichTextString Interface

Represents a Rich Text String that can be used to apply several styles inside a single cell.

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

The IRichTextString type exposes the following members.

Properties
Name Description
Public property IsFormatted
Indicates whether rich text string has formatting runs. Read-only.
Public property Parent
Gets the parent object of the current instance.
(Inherited from IExcelApplication .)
Public property RtfText
Returns text in rtf format. Read-only.
Public property Text
Gets / sets text of the string.
Top
Methods
Name Description
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 IOptimizedUpdate .)
Public method Clear
Clears text and formatting.
Public method ClearFormatting
Clears string formatting.
Public method EndUpdate
This method should be called after several updates to the object took place.
(Inherited from IOptimizedUpdate .)
Public method GetFont
Returns font which is applied to character at the specified position.
Public method SetFont
Sets font for range of characters.
Top
See Also