CoreTextEditContext.FormatUpdating Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the text input server needs to apply a different format to a particular range of text. This usually happens during composition.
// 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)