CoreTextEditContext.LayoutRequested Event

Definition

Occurs when the text input server needs to get the bounding box of a range of text and of the text input control itself. The application should handle this event and return the geometry information requested.

// 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) 

Event Type

Applies to