TdxRichEditControlSetFloatingObjectInFrontOfTextWrapType Class
An action object that corresponds to the SetFloatingObjectInFrontOfTextWrapType command provided by the Rich Edit control.
Declaration
TdxRichEditControlSetFloatingObjectInFrontOfTextWrapType = class(
TdxRichEditControlAction
)
Remarks
This class does not introduce any new public members. Executing a TdxRichEditControlSetFloatingObjectInFrontOfTextWrapType action object moves the floating object to the “foreground” document layer (i.e., anchors the floating object in front of the text).
If the floating object is already anchored in front of the text, executing this action object has no effect. A TdxRichEditControlSetFloatingObjectInFrontOfTextWrapType action object is the equivalent of the TdxRichEditControlFloatingObjectBringInFrontOfText action.
In order to change the floating object’s z-order within the same document layer, you can use the FloatingObjectBringForward, FloatingObjectSendBackward, FloatingObjectSendToBack, and FloatingObjectBringToFront commands.
UI elements linked to a TdxRichEditControlSetFloatingObjectInFrontOfTextWrapType 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.DocumentCapability.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 TdxRichEditControlSetFloatingObjectInFrontOfTextWrapType action object, use the sdxRichEditCommandSetFloatingObjectInFrontOfTextWrapTypeMenuCaption and sdxRichEditCommandSetFloatingObjectInFrontOfTextWrapTypeDescription resource strings, respectively.