TextBoxBase.SelectionChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Event Type
Examples
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
Remarks
Routed Event Information
Identifier field | SelectionChangedEvent |
Routing strategy | Bubbling |
Delegate | RoutedEventHandler |
Applies to
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.