CoreTextLayoutRequest Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents information about a LayoutRequested event.
public ref class CoreTextLayoutRequest sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CoreTextLayoutRequest final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CoreTextLayoutRequest
Public NotInheritable Class CoreTextLayoutRequest
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
An object of this type can be obtained from the CoreTextLayoutRequestedEventArgs.Request property inside a handler for the CoreTextEditContext.LayoutRequested event handler.
Version history
Windows version | SDK version | Value added |
---|---|---|
1809 | 17763 | LayoutBoundsVisualPixels |
Properties
IsCanceled |
Gets a value that indicates whether the layout request operation is canceled. |
LayoutBounds |
Gets the screen coordinates of the bounding box for a range of text, or a text input control. |
LayoutBoundsVisualPixels |
Gets the coordinates of the bounding box for a range of text, or a text input control, relative to viewport of your application. |
Range |
Gets a value that indicates the range of text whose bounding box is being requested by the text input server. The server populates this property before raising the event. |
Methods
GetDeferral() |
Requests that the layout request operation be delayed. Call this method if your text input control is hosted on a worker thread rather than on the UI thread. |