CoreTextEditContext.TextRequested 事件

定义

当文本输入服务器需要从文本输入控件获取一系列文本时发生。 应用程序应处理此事件并返回请求的范围。

// Register
event_token TextRequested(TypedEventHandler<CoreTextEditContext, CoreTextTextRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreTextEditContext::TextRequested_revoker TextRequested(auto_revoke_t, TypedEventHandler<CoreTextEditContext, CoreTextTextRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreTextEditContext,CoreTextTextRequestedEventArgs> TextRequested;
function onTextRequested(eventArgs) { /* Your code */ }
coreTextEditContext.addEventListener("textrequested", onTextRequested);
coreTextEditContext.removeEventListener("textrequested", onTextRequested);
- or -
coreTextEditContext.ontextrequested = onTextRequested;
Public Custom Event TextRequested As TypedEventHandler(Of CoreTextEditContext, CoreTextTextRequestedEventArgs) 

事件类型

适用于