CoreTextEditContext.SelectionUpdating 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 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)