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

TextEdit.SelectedText Property

Gets or sets the selected text.

Namespace: DevExpress.Xpf.Editors

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

[Browsable(false)]
public string SelectedText { get; set; }

#Property Value

Type Description
String

A String value that specifies the text selected within the text editor.

#Remarks

The SelectedText property allows you to obtain the text currently selected within the editor. Setting this property replaces the current selection with the specified string. If no text is selected, a new text is inserted at the cursor location.

See Also