RichEditBox.TextCompositionChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when text being composed through an Input Method Editor (IME) changes.
// Register
event_token TextCompositionChanged(TypedEventHandler<RichEditBox, TextCompositionChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void TextCompositionChanged(event_token const* cookie) const;
// Revoke with event_revoker
RichEditBox::TextCompositionChanged_revoker TextCompositionChanged(auto_revoke_t, TypedEventHandler<RichEditBox, TextCompositionChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<RichEditBox,TextCompositionChangedEventArgs> TextCompositionChanged;
function onTextCompositionChanged(eventArgs) { /* Your code */ }
richEditBox.addEventListener("textcompositionchanged", onTextCompositionChanged);
richEditBox.removeEventListener("textcompositionchanged", onTextCompositionChanged);
- or -
richEditBox.ontextcompositionchanged = onTextCompositionChanged;
Public Custom Event TextCompositionChanged As TypedEventHandler(Of RichEditBox, TextCompositionChangedEventArgs)
<RichEditBox 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:
- TextCompositionStarted
- TextChanging
- TextChanged
- TextCompositionChanged
- TextCompositionEnded
After the TextCompositionStarted event, the TextChanging > TextChanged > TextCompositionChanged event cycle can occur multiple times before the TextCompositionEnded event occurs.