Skip to main content
A newer version of this page is available. .

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:

To localize the caption and hint displayed by UI elements linked to a TdxRichEditControlPasteSelection action object, use the sdxRichEditCommandPasteMenuCaption and sdxRichEditCommandPasteDescription resource strings, respectively.

See Also