Skip to main content

TextEdit.SelectedText Property

Gets or sets the text selected within the editor.

Namespace: DevExpress.WinUI.Editors

Assembly: DevExpress.WinUI.Editors.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public string SelectedText { get; set; }

Property Value

Type Description
String

A string value that is the currently selected text.

Remarks

Setting the SelectedText property replaces the current selection with the specified string. If no text is selected, a new text is inserted at the cursor location.

The TextEdit.SelectionHighlightBrush property specifies the brush used to highlight the selected text.

See Also