XlRichTextRun.Font Property

Gets or sets the font settings of the current region of the cell text.

Namespace: DevExpress.Export.Xl

Assembly: DevExpress.Printing.v21.1.Core.dll


public XlFont Font { get; set; }

Property Value

Type Description

An XlFont object providing members to change font attributes of the cell text region.


Use the Font property of the XlRichTextRun object to change 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 XlRichTextRun.Text and Font 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