Share via


CoreTextEditContext.TextRequested Event

Definition

Occurs when the text input server needs to get a range of text from the text input control. The application should handle this event and return the range requested.

// Register
event_token TextRequested(TypedEventHandler<CoreTextEditContext, CoreTextTextRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreTextEditContext::TextRequested_revoker TextRequested(auto_revoke_t, TypedEventHandler<CoreTextEditContext, CoreTextTextRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreTextEditContext,CoreTextTextRequestedEventArgs> TextRequested;
function onTextRequested(eventArgs) { /* Your code */ }
coreTextEditContext.addEventListener("textrequested", onTextRequested);
coreTextEditContext.removeEventListener("textrequested", onTextRequested);
- or -
coreTextEditContext.ontextrequested = onTextRequested;
Public Custom Event TextRequested As TypedEventHandler(Of CoreTextEditContext, CoreTextTextRequestedEventArgs) 

Event Type

Applies to