CoreTextEditContext.SelectionUpdating 事件

定义

当文本输入服务器需要修改当前在文本输入控件中选择的文本范围时发生。 此事件可能是输入处理器需要选择某些文本或移动插入点的结果。 文本输入控件应相应地设置其选择范围。

// Register
event_token SelectionUpdating(TypedEventHandler<CoreTextEditContext, CoreTextSelectionUpdatingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreTextEditContext::SelectionUpdating_revoker SelectionUpdating(auto_revoke_t, TypedEventHandler<CoreTextEditContext, CoreTextSelectionUpdatingEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreTextEditContext,CoreTextSelectionUpdatingEventArgs> SelectionUpdating;
function onSelectionUpdating(eventArgs) { /* Your code */ }
coreTextEditContext.addEventListener("selectionupdating", onSelectionUpdating);
coreTextEditContext.removeEventListener("selectionupdating", onSelectionUpdating);
- or -
coreTextEditContext.onselectionupdating = onSelectionUpdating;
Public Custom Event SelectionUpdating As TypedEventHandler(Of CoreTextEditContext, CoreTextSelectionUpdatingEventArgs) 

事件类型

适用于