CoreTextLayoutRequest.LayoutBoundsVisualPixels Property

Definition

Gets the coordinates of the bounding box for a range of text, or a text input control, relative to viewport of your application.

public:
 property CoreTextLayoutBounds ^ LayoutBoundsVisualPixels { CoreTextLayoutBounds ^ get(); };
CoreTextLayoutBounds LayoutBoundsVisualPixels();
public CoreTextLayoutBounds LayoutBoundsVisualPixels { get; }
var coreTextLayoutBounds = coreTextLayoutRequest.layoutBoundsVisualPixels;
Public ReadOnly Property LayoutBoundsVisualPixels As CoreTextLayoutBounds

Property Value

An object that represents the layout bounds information requested by the text input server.

The coordinates are in device-independent pixels (DIP), relative to the top left corner of the viewport of your application.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

Your application should populate the requested layout properties of this object before returning from the event handler.

Visual pixels are defined as coordinate values relative to the position, scale, and rotation of a specific UI element (such as the application's core window, a XAML island, or other edit control/visible element).

Applies to