Skip to main content

TextEditBase.Cut() Method

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

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v23.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