TdxRichEditControlFloatingObjectBringForward Class
An action object that corresponds to the FloatingObjectBringForward command provided by the Rich Edit control.
Declaration
TdxRichEditControlFloatingObjectBringForward = class(
TdxRichEditControlAction
)
Remarks
This class does not introduce any new public members. Executing a TdxRichEditControlFloatingObjectBringForward
action object increments the floating object’s z-order by one. If the floating object is already displayed on top of all other objects within the same layer (i.e., the floating object has the maximum z-order value), executing this action object has no effect. In order to move the currently selected floating object between the document’s layers (i.e., wrap text around the floating object, anchor it in front of, or behind text), you can use the SetFloatingObjectSquareTextWrapType, SetFloatingObjectInFrontOfTextWrapType, and SetFloatingObjectBehindTextWrapType commands.
UI elements linked to a TdxRichEditControlFloatingObjectBringForward
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).