Compartilhar via


TextBoxBase.SelectionChanged Evento

Definição

Ocorre quando a seleção de texto é alterada.

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

Exemplos

O exemplo a seguir demonstra como manipular o SelectionChanged evento usando 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

Comentários

Informações de evento encaminhado

Campo Identificador SelectionChangedEvent
Estratégia de roteamento Borbulhando
Delegar RoutedEventHandler

Aplica-se a