TdxRichEditControlFloatingObjectBringToFront Class
An action object that corresponds to the FloatingObjectBringToFront command provided by the Rich Edit control.
Declaration
TdxRichEditControlFloatingObjectBringToFront = class(
TdxRichEditControlAction
)
Remarks
This class does not introduce any new public members. Executing a TdxRichEditControlFloatingObjectBringToFront
action object sets the highest z-order value for the selected floating object. If the floating object is already displayed on top of all other objects within the same layer, 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 TdxRichEditControlFloatingObjectBringToFront
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).