KeyboardInputBuffer.SelectionChanged Event

Definition

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) 

Event Type

Applies to