RichEditBox.TextCompositionEnded 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于使用者透過輸入法編輯器停止撰寫文字時, (輸入法) 。
// Register
event_token TextCompositionEnded(TypedEventHandler<RichEditBox, TextCompositionEndedEventArgs const&> const& handler) const;
// Revoke with event_token
void TextCompositionEnded(event_token const* cookie) const;
// Revoke with event_revoker
RichEditBox::TextCompositionEnded_revoker TextCompositionEnded(auto_revoke_t, TypedEventHandler<RichEditBox, TextCompositionEndedEventArgs const&> const& handler) const;
public event TypedEventHandler<RichEditBox,TextCompositionEndedEventArgs> TextCompositionEnded;
function onTextCompositionEnded(eventArgs) { /* Your code */ }
richEditBox.addEventListener("textcompositionended", onTextCompositionEnded);
richEditBox.removeEventListener("textcompositionended", onTextCompositionEnded);
- or -
richEditBox.ontextcompositionended = onTextCompositionEnded;
Public Custom Event TextCompositionEnded As TypedEventHandler(Of RichEditBox, TextCompositionEndedEventArgs)
<RichEditBox TextCompositionEnded="eventhandler"/>
事件類型
備註
如需事件資料,請參閱 TextCompositionEndedEventArgs。
只有在透過 輸入法編輯器 (輸入法 ) 撰寫文字時,才會發生此事件。 文字組合事件會依下列順序發生:
- TextCompositionStarted
- TextChanging
- TextChanged
- TextCompositionChanged
- TextCompositionEnded
在 TextCompositionStarted事件之後,TextChanged>TextChanged>TextCompositionChanged 事件週期可以在 TextCompositionEnded事件發生之前多次發生。