Back to Devexpress

CharacterPropertiesBase.Subscript Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-characterpropertiesbase-26de0a1c.md

latest2.8 KB
Original Source

CharacterPropertiesBase.Subscript Property

Gets or sets a value indicating whether character(s) are formatted as subscript.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
bool? Subscript { get; set; }
vb
Property Subscript As Boolean?

Property Value

TypeDescription
Nullable<Boolean>

true if character(s) are formatted as subscript; otherwise, false or null for a mixture of true and false.

|

Remarks

Use the CharacterProperties interface to change character formatting.

Important

The CharacterPropertiesBase.Subscript and CharacterPropertiesBase.Superscript properties are interdependent, so that if one property is set to false , the other property becomes also false.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Subscript property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-how-to-edit-rich-text/VB/SpreadsheetRichText/RichTextEditForm.vb#L28

vb
Case ScriptType.Subscript
    cp.Subscript = True
Case ScriptType.Superscript

See Also

ToggleFontSubscriptCommand

ShowFontFormCommand

CharacterPropertiesBase Interface

CharacterPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace