Summary
Creates the
TextLayout
used to render the text.
- Namespace
- Avalonia
.Controls - Containing Type
- TextBlock
Syntax
protected virtual TextLayout CreateTextLayout(Size constraint, string text)
Parameters
Name | Type | Description |
---|---|---|
constraint | Size | The constraint of the text. |
text | string | The text to format. |
Return Value
Type | Description |
---|---|
TextLayout | A TextLayout object. |