TdxRichEditControlInsertTextBox Class
An action object that corresponds to the InsertTextBox command provided by the Rich Edit control.
Declaration
TdxRichEditControlInsertTextBox = class(
TdxRichEditControlAction
)
Remarks
This class does not introduce any new public members. Executing a TdxRichEditControlInsertTextBox action object inserts a floating text box horizontally centered within the current paragraph. The newly created text box is positioned in front of the text.
UI elements linked to a TdxRichEditControlInsertTextBox 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;
The caret or text selection is not located within a floating text box.
To localize the caption and hint displayed by UI elements linked to a TdxRichEditControlInsertTextBox action object, use the sdxRichEditCommandInsertTextBoxMenuCaption and sdxRichEditCommandInsertTextBoxDescription resource strings, respectively.