RichEditBox.TextCompositionChanged 事件

定义

通过输入法编辑器撰写的文本 (输入法) 更改时发生。

// 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"/>

事件类型

注解

有关事件数据,请参阅 TextCompositionChangedEventArgs

仅当通过 输入法编辑器 (输入法) 编写 文本时,才会发生此事件。 文本合成事件按以下顺序发生:

TextCompositionStarted 事件之后, TextChanging>TextChanged> TextCompositionChanged 事件周期可以在 TextCompositionEnded 事件发生之前多次发生。

适用于

另请参阅