TextBoxBase.SelectAll Method ()


Selects all the contents of the text editing control.

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

public void SelectAll()

The following example demonstrates how to use the SelectAll method to select all the contents of a TextBox control.

private void selectAll(object sender, RoutedEventArgs e)

.NET Framework
Available since 3.0
Return to top