TextLayout Class

Summary

Represents a multi line text layout.
Namespace
Avalonia.Media.TextFormatting
Base Types
  • object
graph BT Type-->Base0["object"] Type["TextLayout"] class Type type-node

Syntax

public class TextLayout

Constructors

Properties

Name Value Summary
LineHeight double
Gets or sets the height of each line of text.
MaxHeight double
Gets the maximum height.
MaxLines int
Gets the maximum number of text lines.
MaxWidth double
Gets the maximum width.
Size Size
Gets the size of the layout.
TextLines IReadOnlyList<TextLine>
Gets the text lines.

Methods

Name Value Summary
Draw(DrawingContext) void
Draws the text layout.