Skip to main content

TextEdit.Paste() Method

Replaces the current selection in the text editor with the contents of the clipboard.

Namespace: DevExpress.WinUI.Editors

Assembly: DevExpress.WinUI.Editors.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public virtual void Paste()

Remarks

The text pasted by the Paste method replaces the currently selected text, if any. If no text is selected, the new text is inserted at the caret position.

To select the specified text within the editor, use the TextEdit.Select method. You can also select all the text in the editor via the TextEdit.SelectAll method. Use the TextEdit.Cut method to copy the selected text to the clipboard while deleting it from the edit box. The TextEdit.Delete deletes the currently selected text from the text editor.

See Also