KeyboardInputBuffer.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 within the input buffer has changed.
// Register
event_token SelectionChanged(TypedEventHandler<KeyboardInputBuffer, CoreSelectionChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void SelectionChanged(event_token const* cookie) const;
// Revoke with event_revoker
KeyboardInputBuffer::SelectionChanged_revoker SelectionChanged(auto_revoke_t, TypedEventHandler<KeyboardInputBuffer, CoreSelectionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<KeyboardInputBuffer,CoreSelectionChangedEventArgs> SelectionChanged;
function onSelectionChanged(eventArgs) { /* Your code */ }
keyboardInputBuffer.addEventListener("selectionchanged", onSelectionChanged);
keyboardInputBuffer.removeEventListener("selectionchanged", onSelectionChanged);
- or -
keyboardInputBuffer.onselectionchanged = onSelectionChanged;
Public Custom Event SelectionChanged As TypedEventHandler(Of KeyboardInputBuffer, CoreSelectionChangedEventArgs)