TextEditBase.Paste() Method

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

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public virtual void Paste()
Public Overridable Sub 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 TextEditBase.SelectAll method. Use the TextEditBase.Cut method to copy the selected text to the clipboard while deleting it from the edit box. To copy the selection to the clipboard without deleting, use the TextEditBase.Copy method.

See Also