TextBox.SelectionChanging 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 starts to change.
// Register
event_token SelectionChanging(TypedEventHandler<TextBox, TextBoxSelectionChangingEventArgs const&> const& handler) const;
// Revoke with event_token
void SelectionChanging(event_token const* cookie) const;
// Revoke with event_revoker
TextBox::SelectionChanging_revoker SelectionChanging(auto_revoke_t, TypedEventHandler<TextBox, TextBoxSelectionChangingEventArgs const&> const& handler) const;
public event TypedEventHandler<TextBox,TextBoxSelectionChangingEventArgs> SelectionChanging;
function onSelectionChanging(eventArgs) { /* Your code */ }
textBox.addEventListener("selectionchanging", onSelectionChanging);
textBox.removeEventListener("selectionchanging", onSelectionChanging);
- or -
textBox.onselectionchanging = onSelectionChanging;
Public Custom Event SelectionChanging As TypedEventHandler(Of TextBox, TextBoxSelectionChangingEventArgs)
<TextBox SelectionChanging="eventhandler"/>
Event Type
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|