TdxRichEditControlPasteSelection Class
An action object that corresponds to the PasteSelection command provided by the Rich Edit control.
Declaration
TdxRichEditControlPasteSelection = class(
TdxRichEditControlAction
)
Remarks
This class does not introduce any new public members. Depending on the clipboard’s current content, executing a TdxRichEditControlPasteSelection action object performs one of the following operations:
Pastes a formatted text at the caret position or replaces the current text selection with the text;
Inserts a bitmap image as an inline picture at the caret position (or replaces the current text selection with the pasted inline picture);
Inserts a previously copied floating object, retaining all of its anchoring settings.
UI elements linked to a TdxRichEditControlPasteSelection 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.Behavior.Paste property is set to TdxDocumentCapability.Default or TdxDocumentCapability.Enabled;
The clipboard currently contains a bitmap, floating object, or text selection.
To localize the caption and hint displayed by UI elements linked to a TdxRichEditControlPasteSelection action object, use the sdxRichEditCommandPasteMenuCaption and sdxRichEditCommandPasteDescription resource strings, respectively.