Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxRichEditControlToggleFontItalic Class

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

#Declaration

Delphi
TdxRichEditControlToggleFontItalic = class(
    TdxRichEditControlAction
)

#Remarks

This class does not introduce any new public members. Executing a TdxRichEditControlToggleFontItalic action object applies/removes the Italic font attrbute to/from:

  • The text selection 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 TdxRichEditControlToggleFontItalic 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.

See Also