TdxRichEditControlToggleParagraphAlignmentRight Class
An action object that corresponds to the ToggleParagraphAlignmentRight command provided by the Rich Edit control.
Declaration
TdxRichEditControlToggleParagraphAlignmentRight = class(
TdxRichEditControlAction
)
Remarks
This class does not introduce any new public members. Executing a TdxRichEditControlToggleParagraphAlignmentRight
action object aligns text within the current paragraph to the right document margin. If the selected paragraph is already right-aligned, the ToggleParagraphAlignmentRight 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 TdxRichEditControlToggleParagraphAlignmentRight
action object are enabled only if the following conditions are met:
- The Rich Edit control’s ReadOnly property is set to
False
. - The Rich Edit control’s Options.DocumentCapabilities.Paragraphs property is set to TdxDocumentCapability.Default or TdxDocumentCapability.Enabled.
- The Rich Edit control’s Options.DocumentCapabilities.ParagraphFormatting property is set to TdxDocumentCapability.Default or TdxDocumentCapability.Enabled.
Inheritance
TObject
TPersistent
TComponent
TBasicAction
TContainedAction
TCustomAction
TAction
TdxBasicAction
TdxRichEditControlAction
TdxRichEditControlToggleParagraphAlignmentRight
See Also