共用方式為


CoreTextEditContext.FormatUpdating 事件

定義

發生于文字輸入伺服器需要將不同的格式套用至特定文字範圍時。 這通常會在組合期間發生。

// Register
event_token FormatUpdating(TypedEventHandler<CoreTextEditContext, CoreTextFormatUpdatingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreTextEditContext::FormatUpdating_revoker FormatUpdating(auto_revoke_t, TypedEventHandler<CoreTextEditContext, CoreTextFormatUpdatingEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreTextEditContext,CoreTextFormatUpdatingEventArgs> FormatUpdating;
function onFormatUpdating(eventArgs) { /* Your code */ }
coreTextEditContext.addEventListener("formatupdating", onFormatUpdating);
coreTextEditContext.removeEventListener("formatupdating", onFormatUpdating);
- or -
coreTextEditContext.onformatupdating = onFormatUpdating;
Public Custom Event FormatUpdating As TypedEventHandler(Of CoreTextEditContext, CoreTextFormatUpdatingEventArgs) 

事件類型

適用於