RichEditBox.TextCompositionStarted 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 a user starts composing text through an Input Method Editor (IME).
// Register
event_token TextCompositionStarted(TypedEventHandler<RichEditBox, TextCompositionStartedEventArgs const&> const& handler) const;
// Revoke with event_token
void TextCompositionStarted(event_token const* cookie) const;
// Revoke with event_revoker
RichEditBox::TextCompositionStarted_revoker TextCompositionStarted(auto_revoke_t, TypedEventHandler<RichEditBox, TextCompositionStartedEventArgs const&> const& handler) const;
public event TypedEventHandler<RichEditBox,TextCompositionStartedEventArgs> TextCompositionStarted;
function onTextCompositionStarted(eventArgs) { /* Your code */ }
richEditBox.addEventListener("textcompositionstarted", onTextCompositionStarted);
richEditBox.removeEventListener("textcompositionstarted", onTextCompositionStarted);
- or -
richEditBox.ontextcompositionstarted = onTextCompositionStarted;
Public Custom Event TextCompositionStarted As TypedEventHandler(Of RichEditBox, TextCompositionStartedEventArgs)
<RichEditBox 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:
- TextCompositionStarted
- TextChanging
- TextChanged
- TextCompositionChanged
- TextCompositionEnded
After the TextCompositionStarted event, the TextChanging > TextChanged > TextCompositionChanged event cycle can occur multiple times before the TextCompositionEnded event occurs.