共用方式為


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事件發生。

適用於

另請參閱