Compartilhar via


CoreTextEditContext.SelectionRequested Evento

Definição

Ocorre quando o servidor de entrada de texto precisa obter o intervalo de texto que representa o texto selecionado no momento no controle de entrada de texto. O aplicativo deve manipular esse evento e retornar o intervalo solicitado.

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

Tipo de evento

Aplica-se a