共用方式為


RichEditBox.TextCompositionStarted 事件

定義

發生於使用者透過輸入法 編輯器 (輸入法) 開始撰寫文字時。

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

事件類型

備註

如需事件數據,請參閱 TextCompositionStartedEventArgs

只有在透過輸入法撰寫文字 編輯器 (輸入法) 時,才會發生此事件。 文字組合事件會依下列順序發生:

TextCompositionStarted 事件之後, TextChanging>TextChanged>TextCompositionChanged 事件週期可能會多次發生 ,然後 TextCompositionEnded 事件發生。

適用於

另請參閱