Comparteix a través de


TextBoxBase.SelectionChanged Evento

Definición

Se produce cuando varía la selección de texto.

public:
 event System::Windows::RoutedEventHandler ^ SelectionChanged;
public event System.Windows.RoutedEventHandler SelectionChanged;
member this.SelectionChanged : System.Windows.RoutedEventHandler 
Public Custom Event SelectionChanged As RoutedEventHandler 

Tipo de evento

Ejemplos

En el ejemplo siguiente se muestra cómo controlar el SelectionChanged evento mediante código.

private void selectChanged(object sender, RoutedEventArgs e)
{
    myTextBox.AppendText("Selection Changed event in myTextBox2 has just occurred.");
}
Private Sub selectChanged(ByVal sender As Object, ByVal e As RoutedEventArgs)
    myTextBox.AppendText("Selection Changed event in myTextBox2 has just occurred.")
End Sub

Comentarios

Información sobre eventos enrutados

Campo identificador SelectionChangedEvent
Estrategia de enrutamiento Burbujeante
Delegado RoutedEventHandler

Se aplica a