TextMetrics Structure

A metric that holds information about text specific measurements.

Definition

Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public readonly struct TextMetrics : IEquatable<TextMetrics>
Inheritance
Object    ValueType    TextMetrics
Implements
IEquatableTextMetrics

Properties

Ascent Gets the recommended distance above the baseline.
Descent Gets the recommended distance under the baseline.
FontRenderingEmSize Em size of font used to format and display text
LineGap Gets the recommended additional space between two lines of text.
LineHeight Gets the estimated line height.
StrikethroughPosition Gets a value that indicates the distance of the strikethrough from the baseline.
StrikethroughThickness Gets a value that indicates the thickness of the underline.
UnderlinePosition Gets a value that indicates the distance of the underline from the baseline.
UnderlineThickness Gets a value that indicates the thickness of the underline.

Methods

GetTypeGets the Type of the current instance.
(Inherited from Object)

See Also