Skip to main content

IdxRichEditDocument.Paste(TdxRichEditDocumentFormat) Method

Inserts the clipboard content into the opened document.

Declaration

procedure Paste(const AFormat: TdxRichEditDocumentFormat); overload;

Parameters

Name Type
AFormat TdxRichEditDocumentFormat

Remarks

Call this procedure to either insert the clipboard content at the caret position or replace the current selection with the clipboard content. The second overloaded variant allows you to explicitly specify the document format applied to the pasted fragment.

The first overloaded variant works identically to the Rich Edit control’s Paste procedure. Alternatively, you can Executing a TdxRichEditControlPasteSelection action object to produce the same effect.

Note

The Paste procedure is not affected by the Rich Edit control’s Options.Behavior.Paste property value.

See Also