CoreTextEditContext.LayoutRequested 事件

定义

当文本输入服务器需要获取文本范围和文本输入控件本身的边界框时发生。 应用程序应处理此事件并返回请求的几何信息。

// Register
event_token LayoutRequested(TypedEventHandler<CoreTextEditContext, CoreTextLayoutRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreTextEditContext::LayoutRequested_revoker LayoutRequested(auto_revoke_t, TypedEventHandler<CoreTextEditContext, CoreTextLayoutRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreTextEditContext,CoreTextLayoutRequestedEventArgs> LayoutRequested;
function onLayoutRequested(eventArgs) { /* Your code */ }
coreTextEditContext.addEventListener("layoutrequested", onLayoutRequested);
coreTextEditContext.removeEventListener("layoutrequested", onLayoutRequested);
- or -
coreTextEditContext.onlayoutrequested = onLayoutRequested;
Public Custom Event LayoutRequested As TypedEventHandler(Of CoreTextEditContext, CoreTextLayoutRequestedEventArgs) 

事件类型

适用于