Share via


CoreTextEditContext.TextUpdating イベント

定義

テキスト入力サーバーがテキスト入力コントロール内のテキストを変更する必要がある場合に発生します。 このイベントは、1 文字の挿入などのキー イベントの結果、または自動修正や予測などの入力プロセッサによって実行された処理の結果である可能性があります。

イベントを処理する場合、テキスト入力コントロールは、範囲をサーバーが提供する新しいテキストに置き換え、キャレットを新しいテキストの末尾に移動する必要があります。

// Register
event_token TextUpdating(TypedEventHandler<CoreTextEditContext, CoreTextTextUpdatingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreTextEditContext::TextUpdating_revoker TextUpdating(auto_revoke_t, TypedEventHandler<CoreTextEditContext, CoreTextTextUpdatingEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreTextEditContext,CoreTextTextUpdatingEventArgs> TextUpdating;
function onTextUpdating(eventArgs) { /* Your code */ }
coreTextEditContext.addEventListener("textupdating", onTextUpdating);
coreTextEditContext.removeEventListener("textupdating", onTextUpdating);
- or -
coreTextEditContext.ontextupdating = onTextUpdating;
Public Custom Event TextUpdating As TypedEventHandler(Of CoreTextEditContext, CoreTextTextUpdatingEventArgs) 

イベントの種類

適用対象