TextLineMetrics Struct

Summary

Represents a metric for a TextLine objects, that holds information about ascent, descent, line gap, size and origin of the text line.
Namespace
Avalonia.Media.TextFormatting
Base Types
  • object
  • ValueType
graph BT Type-->Base0["ValueType"] Base0-->Base1["object"] Type["TextLineMetrics"] class Type type-node

Syntax

public readonly struct TextLineMetrics : ValueType

Constructors

Properties

Name Value Summary
HasOverflowed bool
Gets a boolean value that indicates whether content of the line overflows the specified paragraph width.
Size Size
Gets the size of the text line.
TextBaseline double
Gets the distance from the top to the baseline of the line of text.
TextRange TextRange
Gets the text range that is covered by the text line.

Methods

Name Value Summary
Create(IEnumerable<TextRun>, TextRange, double, TextParagraphProperties) TextLineMetrics
Creates the text line metrics.
static