Back to Devexpress

CharacterPropertiesBase.Superscript Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-characterpropertiesbase-f6f69d57.md

latest2.9 KB
Original Source

CharacterPropertiesBase.Superscript Property

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

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Property Value

TypeDescription
Nullable<Boolean>

true if character(s) are formatted as superscript; 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 Superscript 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#L30

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

See Also

ToggleFontSuperscriptCommand

ShowFontFormCommand

CharacterPropertiesBase Interface

CharacterPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace