Share via


CoreTextEditContext.TextUpdating Event

Definition

Occurs when the text input server needs to modify text inside the text input control. This event could be the result of a key event— such as inserting a single character— or the result of processing done by an input processor, such as auto-correction and prediction.

When handling the event, the text input control must replace a range with the new text provided by the server, and also move the caret to the end of the new text.

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

Event Type

Applies to