SelectAll Method

RichTextBox.SelectAll Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Selects the entire contents in the RichTextBox.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)

public void SelectAll()

The selection highlight is invisible if the RichTextBox does not have focus. So, if you want to implement a "Select All" button in a toolbar it is good practice to call RichTextBox.Focus after SelectAll.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2018 Microsoft