CoreTextEditContext.SelectionUpdating 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当文本输入服务器需要修改当前在文本输入控件中选择的文本范围时发生。 此事件可能是输入处理器需要选择某些文本或移动插入点的结果。 文本输入控件应相应地设置其选择范围。
// 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)
事件类型
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈