This documentation is archived and is not being maintained.
TextBox.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 of the text box.
Namespace:
System.Windows.Controls
Assembly:
System.Windows (in System.Windows.dll)
'Declaration
Public Sub SelectAll
The following code example shows how you can use the SelectAll method.
Private Sub SelectAll()
'Entire contents of MyTB are selected
MyTB.SelectAll()
End Sub
Windows Phone OS
Supported in: 8.1, 8.0, 7.1, 7.0