Condividi tramite


CoreTextEditContext.SelectionRequested Evento

Definizione

Si verifica quando il server di input di testo deve ottenere l'intervallo di testo che rappresenta il testo attualmente selezionato nel controllo input di testo. L'applicazione deve gestire questo evento e restituire l'intervallo richiesto.

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

Si applica a