TextBoxBase.SelectionChanged Evento

Definición

Se produce cuando varía la selección de texto.Occurs when the text selection has changed.

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

RoutedEventHandler

Ejemplos

En el ejemplo siguiente se muestra cómo controlar el evento mediante el SelectionChanged uso de código.The following example demonstrates how to handle the SelectionChanged event by using code.

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 enrutadosRouted Event Information

Campo de identificadorIdentifier field SelectionChangedEvent
Estrategia de enrutamientoRouting strategy PropagaciónBubbling
DelegadoDelegate RoutedEventHandler

Se aplica a