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

In This Article

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

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

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