Back to Devexpress

TdxRichEditControlToggleFontStrikeout Class

vcl-dxrichedit-dot-actions-c9a2379a.md

latest3.2 KB
Original Source

TdxRichEditControlToggleFontStrikeout Class

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

Declaration

delphi
TdxRichEditControlToggleFontStrikeout = class(
    TdxRichEditControlAction
)

Remarks

This class does not introduce any new public members. Executing a TdxRichEditControlToggleFontStrikeout action object applies/removes the Strikeout font attribute 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 TdxRichEditControlToggleFontStrikeout 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.

Note

Applying the Strikeout font attribute automatically removes the Double Strikeout font attribute (if set).

Inheritance

TObject TPersistent TComponent TBasicAction TContainedAction TCustomAction TAction TdxBasicAction TdxRichEditControlAction TdxRichEditControlToggleFontStrikeout

See Also

TdxRichEditControlToggleFontBold

TdxRichEditControlToggleFontDoubleUnderline

TdxRichEditControlToggleFontItalic

TdxRichEditControlToggleFontSubscript

TdxRichEditControlToggleFontSuperscript

TdxRichEditControlToggleFontUnderline

TdxRichEditControlToggleFontStrikeout Members

dxRichEdit.Actions Unit