Skip to main content

XlRichTextRun.Text Property

Gets or sets the text of the current cell region with a specific font.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v23.2.Core.dll

NuGet Package: DevExpress.Printing.Core

Declaration

public string Text { get; set; }

Property Value

Type Description
String

A String value that specifies the text associated with the current cell region.

Remarks

Use the Text and XlRichTextRun.Font properties of the XlRichTextRun object to change the content and font settings of an individual region of the rich formatted text in a cell (defined by the XlRichTextString object). Access the required text region, or text run, by its index in the XlRichTextString.Runs collection and set its properties to the new values.

For an example on how to apply different fonts to specific regions of the cell text, refer to the How to: Apply Rich Formatting to the Cell Text document.

See Also