Skip to main content

TextEdit.SelectedText Property

Gets or sets the selected text.

Namespace: DevExpress.Xpf.Editors

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