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

RichTextRunFont.Script Property

Gets or sets whether the current text run is formatted as subscript, superscript, or neither.

Namespace: DevExpress.Spreadsheet

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

Declaration

public ScriptType Script { get; set; }

Property Value

Type Description
ScriptType

A ScriptType enumerator member indicating whether a text region is subscript or superscript.

Available values:

Name Description
None

Specifies that the text is not formatted as subscript or as superscript.

Superscript

Formats text as superscript.

Subscript

Formats text as subscript.

Remarks

The RichTextRunFont object’s properties allow you to specify font settings for individual regions of the cell text (so-called text runs defined by the RichTextRun objects).

You can do one of the following to apply rich formatting to a portion of the cell text:

Call the Range.SetRichText method to assign the rich formatted text to a cell.

To view font settings applied to an existing run, use the run’s RichTextRun.Font property.

Refer to the How to: Apply Rich Formatting to Cell Text document for examples on how to apply different fonts to specific regions of the cell text.

Implements

See Also