共用方式為


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) 

事件類型

適用於