TextEditBase.Copy() Method

Copies the current selection to the clipboard.

Namespace: DevExpress.Xpf.Editors

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

Declaration

public virtual void Copy()
Public Overridable Sub Copy

Remarks

End-users can copy the selection using the CTRL+C or CTRL+INS key combinations, or using the editor's built-in context menu. The Copy method is useful if you need to provide additional methods to copy the selected text.

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 and delete it from the editor. To paste text from the clipboard to the editor, use the TextEditBase.Paste method.

See Also