TextBox.TextCompositionChanged Event

Definition

Occurs when text being composed through an Input Method Editor (IME) changes.

// Register
event_token TextCompositionChanged(TypedEventHandler<TextBox, TextCompositionChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
TextBox::TextCompositionChanged_revoker TextCompositionChanged(auto_revoke_t, TypedEventHandler<TextBox, TextCompositionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<TextBox,TextCompositionChangedEventArgs> TextCompositionChanged;
function onTextCompositionChanged(eventArgs) { /* Your code */ }
textBox.addEventListener("textcompositionchanged", onTextCompositionChanged);
textBox.removeEventListener("textcompositionchanged", onTextCompositionChanged);
- or -
textBox.ontextcompositionchanged = onTextCompositionChanged;
Public Custom Event TextCompositionChanged As TypedEventHandler(Of TextBox, TextCompositionChangedEventArgs) 
<TextBox TextCompositionChanged="eventhandler"/>

Event Type

Remarks

For event data, see TextCompositionChangedEventArgs.

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