TextBoxBase.SelectionChanged TextBoxBase.SelectionChanged TextBoxBase.SelectionChanged TextBoxBase.SelectionChanged Event

Определение

Происходит при изменении выделения текста.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 

Примеры

Следующий пример демонстрирует способ обработки SelectionChanged событий с помощью кода.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

Комментарии

Сведения о маршрутизируемом событииRouted Event Information

Поле идентификатораIdentifier field SelectionChangedEvent
Стратегия маршрутизацииRouting strategy Восходящая маршрутизацияBubbling
делегатDelegate RoutedEventHandler

Применяется к