FormattedTextBuildGeometry Method

Obtains geometry for the text, including underlines and strikethroughs.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public Geometry? BuildGeometry(
	Point origin
)

Parameters

origin  Point
The left top origin of the resulting geometry.

Return Value

Geometry
The geometry returned contains the combined geometry of all of the glyphs, underlines and strikeThroughs that represent the formatted text. Overlapping contours are merged by performing a Boolean union operation.

See Also