SelectedText Property (WPFRichTextBox)

Action

Gets the content of the current selection in the text box. Getting this property returns a string copy of the current. Setting this property replaces the current selection with the specified string.

Syntax

C#
protected String SelectedText { get; }
VB
'Declaration
Protected Read Property SelectedText As String

Access

Read only.