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) 

事件类型

适用于