Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TextEditBase.Copy() Method

In This Article

Copies the current selection to the clipboard.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

public virtual void 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