Skip to main content

BuildGeometry Method

Obtains geometry for the text, including underlines and strikethroughs.

Definition​

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public Geometry? BuildGeometry(
Point origin
)

Parameters​

  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​

Reference​

FormattedText Class
Avalonia.Media Namespace