TextBox.TextCompositionEnded 事件

定义

当用户通过输入法编辑器 (输入法) 停止撰写文本时发生。

// Register
event_token TextCompositionEnded(TypedEventHandler<TextBox, TextCompositionEndedEventArgs const&> const& handler) const;

// Revoke with event_token
void TextCompositionEnded(event_token const* cookie) const;

// Revoke with event_revoker
TextBox::TextCompositionEnded_revoker TextCompositionEnded(auto_revoke_t, TypedEventHandler<TextBox, TextCompositionEndedEventArgs const&> const& handler) const;
public event TypedEventHandler<TextBox,TextCompositionEndedEventArgs> TextCompositionEnded;
function onTextCompositionEnded(eventArgs) { /* Your code */ }
textBox.addEventListener("textcompositionended", onTextCompositionEnded);
textBox.removeEventListener("textcompositionended", onTextCompositionEnded);
- or -
textBox.ontextcompositionended = onTextCompositionEnded;
Public Custom Event TextCompositionEnded As TypedEventHandler(Of TextBox, TextCompositionEndedEventArgs) 
<TextBox TextCompositionEnded="eventhandler"/>

事件类型

注解

有关事件数据,请参阅 TextCompositionEndedEventArgs

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

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

适用于

另请参阅