Back to Devexpress

IdxRichEditDocument.Paste(TdxRichEditDocumentFormat) Method

vcl-dxrichedit-dot-nativeapi-dot-idxricheditdocument-dot-paste-x28-dxrichedit-dot-nativeapi-dot-tdxricheditdocumentformat-x29.md

latest1.6 KB
Original Source

IdxRichEditDocument.Paste(TdxRichEditDocumentFormat) Method

Inserts the clipboard content into the opened document.

Declaration

delphi
procedure Paste(const AFormat: TdxRichEditDocumentFormat); overload;

Parameters

NameType
AFormatTdxRichEditDocumentFormat

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

IdxRichEditDocument.Copy

IdxRichEditDocument.Cut

IdxRichEditDocument Interface

IdxRichEditDocument Members

dxRichEdit.NativeApi Unit