TextBoxBase.SelectAll メソッド

定義

テキスト編集コントロールのすべての内容を選択します。

public:
 void SelectAll();
public void SelectAll();
member this.SelectAll : unit -> unit
Public Sub SelectAll ()

次の例では、 SelectAll メソッドを使用して、 TextBox コントロールのすべてのコンテンツを選択する方法を示します。

private void selectAll(object sender, RoutedEventArgs e)
{
    myTextBox.SelectAll();
}
Private Sub selectAll(ByVal sender As Object, ByVal e As RoutedEventArgs)
    myTextBox.SelectAll()
End Sub

適用対象