CoreTextEditContext.SelectionRequested Event

Definition

Occurs when the text input server needs to get the text range representing the currently selected text in the text input control. The application should handle this event and return the range requested.

// Register
event_token SelectionRequested(TypedEventHandler<CoreTextEditContext, CoreTextSelectionRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreTextEditContext::SelectionRequested_revoker SelectionRequested(auto_revoke_t, TypedEventHandler<CoreTextEditContext, CoreTextSelectionRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreTextEditContext,CoreTextSelectionRequestedEventArgs> SelectionRequested;
function onSelectionRequested(eventArgs) { /* Your code */ }
coreTextEditContext.addEventListener("selectionrequested", onSelectionRequested);
coreTextEditContext.removeEventListener("selectionrequested", onSelectionRequested);
- or -
coreTextEditContext.onselectionrequested = onSelectionRequested;
Public Custom Event SelectionRequested As TypedEventHandler(Of CoreTextEditContext, CoreTextSelectionRequestedEventArgs) 

Event Type

Applies to