Summary
Creates the text line metrics.
- Namespace
- Avalonia
.Media .TextFormatting - Containing Type
- TextLineMetrics
Syntax
public static TextLineMetrics Create(IEnumerable<TextRun> textRuns, TextRange textRange, double paragraphWidth, TextParagraphProperties paragraphProperties)
Parameters
Name | Type | Description |
---|---|---|
textRuns | IEnumerable |
The text runs. |
textRange | TextRange | The text range that is covered by the text line. |
paragraphWidth | double | The paragraph width. |
paragraphProperties | Text |
The text alignment. |
Return Value
Type | Description |
---|---|
TextLineMetrics |