Compartilhar via


CoreTextEditContext.TextRequested Evento

Definição

Ocorre quando o servidor de entrada de texto precisa obter um intervalo de texto do controle de entrada de texto. O aplicativo deve manipular esse evento e retornar o intervalo solicitado.

// 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) 

Tipo de evento

Aplica-se a