Skip to main content
A newer version of this page is available. .

XlRichTextRun.Font Property

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

Namespace: DevExpress.Export.Xl

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

Declaration

public XlFont Font { get; set; }

Property Value

Type Description
XlFont

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

Remarks

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