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

TdxRichEditControlToggleFontSubscript Class

An action object that corresponds to the ToggleFontSubscript command in the Rich Edit control.

Declaration

TdxRichEditControlToggleFontSubscript = class(
    TdxRichEditControlAction
)

Remarks

This class does not introduce any new public members. Executing a TdxRichEditControlToggleFontSubscript action object applies/removes the Subscript font attribute to/from:

  • The text selection(s) in a document (including text selected within a text box or table);

  • The edited word (i.e., the word in which the caret is currently located);

  • The currently used font (if no text is selected, and the caret is not located within a word).

The state of UI elements linked to a TdxRichEditControlToggleFontSubscript action object is determined by the Rich Edit control’s Options.DocumentCapabilities.CharacterFormatting property value. Refer to the TdxDocumentCapability type description for the full list of available command states.

To localize the caption and hint displayed by UI elements linked to a TdxRichEditControlToggleFontSubscript action object, use the sdxRichEditCommandFontSubscriptMenuCaption and sdxRichEditCommandFontSubscriptDescription resource strings, respectively.

Note

Applying the Subscript font attribute automatically removes the Superscript font attribute (if set).

See Also