Condividi tramite


TextBox.TextCompositionStarted Evento

Definizione

Si verifica quando un utente inizia a comporre testo tramite un metodo di input Editor (IME).

// Register
event_token TextCompositionStarted(TypedEventHandler<TextBox, TextCompositionStartedEventArgs const&> const& handler) const;

// Revoke with event_token
void TextCompositionStarted(event_token const* cookie) const;

// Revoke with event_revoker
TextBox::TextCompositionStarted_revoker TextCompositionStarted(auto_revoke_t, TypedEventHandler<TextBox, TextCompositionStartedEventArgs const&> const& handler) const;
public event TypedEventHandler<TextBox,TextCompositionStartedEventArgs> TextCompositionStarted;
function onTextCompositionStarted(eventArgs) { /* Your code */ }
textBox.addEventListener("textcompositionstarted", onTextCompositionStarted);
textBox.removeEventListener("textcompositionstarted", onTextCompositionStarted);
- or -
textBox.ontextcompositionstarted = onTextCompositionStarted;
Public Custom Event TextCompositionStarted As TypedEventHandler(Of TextBox, TextCompositionStartedEventArgs) 
<TextBox TextCompositionStarted="eventhandler"/>

Tipo evento

Commenti

Per i dati dell'evento, vedere TextCompositionStartedEventArgs.

Questo evento si verifica solo quando il testo viene composto tramite un metodo di input Editor (IME). Gli eventi di composizione del testo si verificano nell'ordine seguente:

Dopo l'evento TextCompositionStarted, il ciclo di eventi TextChanging>TextCompositionChanged> può verificarsi più volte prima che si verifichi l'evento TextCompositionEnded.

Si applica a

Vedi anche