Back to API Reference
Struct

RangeVisualFragment

sealed

One final visual fragment of a logical text range.

public Rect Bounds{ get }

Final component-local axis-aligned bounds after mesh deformation.

public Rect LayoutBounds{ get }

Component-local bounds before mesh deformation.

public RangeVisualTransformKind TransformKind{ get }

Whether one transform can represent every glyph in this fragment.

public RangeVisualTransform Transform{ get }

Resolved layout-to-final transform. Valid for Identity and Uniform fragments. For a NonUniform fragment, use Bounds as an envelope or request visual glyphs when exact topology matters.

public int LineIndex{ get }

Layout line containing this fragment.

public bool IsRightToLeft{ get }

Resolved direction of the fragment's shaping run.

public bool ContainsRangeStart{ get }

Whether this fragment contains the logical start of the selected range.

public bool ContainsRangeEnd{ get }

Whether this fragment contains the logical end of the selected range.

public bool RangeStartOnRight{ get }

Physical side on which the logical range start lies.

public bool RangeEndOnRight{ get }

Physical side on which the logical range end lies.

public int ClusterStart{ get }

First selected cluster represented by this fragment.

public int ClusterEnd{ get }

Exclusive selected cluster end represented by this fragment.