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.Cut() Method

In This Article

Moves the current selection in the text editor to the clipboard.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

public virtual void Cut()

#Remarks

End-users can cut the selection using the CTRL+X or SHIFT+DEL key combinations, or using the built-in context menu. The Cut method is useful if you need to provide additional methods to cut 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.

The Cut method copies 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 instead. To paste text from the clipboard to the editor, use the TextEditBase.Paste method.

See Also