Share via


TextBox.TextCompositionStarted Event

Definition

Occurs when a user starts composing text through an Input Method 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"/>

Event Type

Remarks

For event data, see TextCompositionStartedEventArgs.

This event occurs only when text is composed through an Input Method Editor (IME). Text composition events occur in the following order:

After the TextCompositionStarted event, the TextChanging > TextChanged > TextCompositionChanged event cycle can occur multiple times before the TextCompositionEnded event occurs.

Applies to

See also