Compartir a través de


CoreTextEditContext.SelectionRequested Evento

Definición

Se produce cuando el servidor de entrada de texto necesita obtener el intervalo de texto que representa el texto seleccionado actualmente en el control de entrada de texto. La aplicación debe controlar este evento y devolver el 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

Se aplica a