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