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

적용 대상