Back to Devexpress

TdxRichEditControlToggleParagraphAlignmentCenter Class

vcl-dxrichedit-dot-actions-8c99773f.md

latest3.6 KB
Original Source

TdxRichEditControlToggleParagraphAlignmentCenter Class

An action object that corresponds to the ToggleParagraphAlignmentCenter command provided by the Rich Edit control.

Declaration

delphi
TdxRichEditControlToggleParagraphAlignmentCenter = class(
    TdxRichEditControlAction
)

Remarks

This class does not introduce any new public members. Executing a TdxRichEditControlToggleParagraphAlignmentCenter action object centers the selected paragraph(s) between the left and right document margins. If the current paragraph is already centered, the ToggleParagraphAlignmentCenter command can do one of the following:

  • Restore the previous paragraph alignment setting;

  • Reset the default paragraph alignment (i.e., align text to the left document margin) if the current paragraph has no previous alignment setting.

UI elements linked to a TdxRichEditControlToggleParagraphAlignmentCenter action object are enabled only if the following conditions are met:

Inheritance

TObject TPersistent TComponent TBasicAction TContainedAction TCustomAction TAction TdxBasicAction TdxRichEditControlAction TdxRichEditControlToggleParagraphAlignmentCenter

See Also

TdxRichEditControlToggleParagraphAlignmentJustify

TdxRichEditControlToggleParagraphAlignmentLeft

TdxRichEditControlToggleParagraphAlignmentRight

TdxRichEditControlToggleParagraphAlignmentCenter Members

dxRichEdit.Actions Unit