TextBox.SelectAll Method

July 28, 2014

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2014 Microsoft