TdxRichEditControlToggleParagraphAlignmentLeft Class
An action object that corresponds to the ToggleParagraphAlignmentLeft command provided by the Rich Edit control.
Declaration
TdxRichEditControlToggleParagraphAlignmentLeft = class(
TdxRichEditControlAction
)
Remarks
This class does not introduce any new public members. Executing a TdxRichEditControlToggleParagraphAlignmentLeft action object aligns text to the left document margin within either the selected paragraph(s) or a paragraph in which the caret is located. If the current paragraph is already aligned to the left document margin, the ToggleParagraphAlignmentLeft command can do one of the following:
Restore the previous paragraph alignment setting;
Justify text within the current paragraph between the left and right document margins provided that the paragraph has no previous alignment setting.
UI elements linked to a TdxRichEditControlToggleParagraphAlignmentLeft 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.
To localize the caption and hint displayed by UI elements linked to a TdxRichEditControlToggleParagraphAlignmentLeft action object, use the sdxRichEditCommandParagraphAlignmentLeftMenuCaption and sdxRichEditCommandParagraphAlignmentLeftDescription resource strings, respectively.