CoreTextEditContext.SelectionUpdating Event

Definition

Occurs when the text input server needs to modify the range of text currently selected in the text input control. This event could be the result of an input processor needing to select some text, or to move the caret. The text input control should set its selection range accordingly.

// Register
event_token SelectionUpdating(TypedEventHandler<CoreTextEditContext, CoreTextSelectionUpdatingEventArgs const&> const& handler) const;

// Revoke with event_token
void SelectionUpdating(event_token const* cookie) const;

// Revoke with event_revoker
CoreTextEditContext::SelectionUpdating_revoker SelectionUpdating(auto_revoke_t, TypedEventHandler<CoreTextEditContext, CoreTextSelectionUpdatingEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreTextEditContext,CoreTextSelectionUpdatingEventArgs> SelectionUpdating;
function onSelectionUpdating(eventArgs) { /* Your code */ }
coreTextEditContext.addEventListener("selectionupdating", onSelectionUpdating);
coreTextEditContext.removeEventListener("selectionupdating", onSelectionUpdating);
- or -
coreTextEditContext.onselectionupdating = onSelectionUpdating;
Public Custom Event SelectionUpdating As TypedEventHandler(Of CoreTextEditContext, CoreTextSelectionUpdatingEventArgs) 

Event Type

Applies to