TextMetrics Structure
A metric that holds information about text specific measurements.
Definition
Namespace: Avalonia.Media.TextFormatting
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public readonly struct TextMetrics : IEquatable<TextMetrics>
Public Structure TextMetrics
Implements IEquatable(Of TextMetrics)
[<SealedAttribute>]
type TextMetrics =
struct
inherit ValueType
interface IEquatable<TextMetrics>
end
Inheritance | Object → ValueType → TextMetrics |
Implements | IEquatable(TextMetrics) |
Constructors
TextMetrics(IGlyphTypeface, Double) | Initializes a new instance of the TextMetrics class |
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
GetType() | Gets the Type of the current instance. (Inherited from Object) |