TdxRichEditControlSetFloatingObjectMiddleCenterAlignment Class
An action object that corresponds to the SetFloatingObjectMiddleCenterAlignment command provided by the Rich Edit control.
Declaration
TdxRichEditControlSetFloatingObjectMiddleCenterAlignment = class(
TdxRichEditControlAction
)
Remarks
This class does not introduce any new public members. Executing a TdxRichEditControlSetFloatingObjectMiddleCenterAlignment action object centers the selected floating object both horizontally and vertically on the document page:
UI elements linked to a TdxRichEditControlSetFloatingObjectMiddleCenterAlignment 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.FloatingObjects property is set to TdxDocumentCapability.Default or TdxDocumentCapability.Enabled;
A floating object is currently selected;
The selection is not located within a floating object (for instance, the caret or text selection is not located within a text box).
To localize the caption and hint displayed by UI elements linked to a TdxRichEditControlSetFloatingObjectMiddleCenterAlignment action object, use the sdxRichEditCommandSetFloatingObjectMiddleCenterAlignmentMenuCaption and sdxRichEditCommandSetFloatingObjectMiddleCenterAlignmentDescription resource strings, respectively.