Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

Document.Paste() Method

Insert a text from the Clipboard into the current CaretPosition.

Namespace: DevExpress.XtraRichEdit.API.Native

Assembly: DevExpress.RichEdit.v20.2.Core.dll

NuGet Package: DevExpress.RichEdit.Core

Declaration

void Paste()

Remarks

The inserted text replaces any text that is currently selected in the Document (the Document.Selection property provides access to the currently selected text).

Note

The Paste method executes a UI command and is in effect only for RichEditControl (WinForms and WPF). Use the SubDocument.AppendDocumentContent or SubDocument.InsertDocumentContent method to insert text in code.

See Also