This topic has not yet been rated - Rate this topic

TextBox.SelectAll Method

May 02, 2013

Selects the entire contents of the text box.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
public void SelectAll()

The following code example shows how you can use the SelectAll method.


private void SelectAll()
{
    //Entire contents of MyTB are selected
    MyTB.SelectAll();
}


Windows Phone OS

Supported in: 8.0, 7.1, 7.0

Windows Phone

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.