RichTextBox::Selection Property
.NET Framework (current version)
Gets a TextSelection object containing the current selection in the RichTextBox.
Assembly: PresentationFramework (in PresentationFramework.dll)
Property Value
Type: System.Windows.Documents::TextSelection^A TextSelection object containing the current selection in the RichTextBox.
The default returned TextSelection has an IsEmpty property value of True. An empty TextSelection renders as a caret in the text area with no selection.
.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Available since 3.0
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 7.1
Show: