AccessText.

CreateTextLayout(Size, string) Method

Summary

Creates the TextLayout used to render the text.
Namespace
Avalonia.Controls.Primitives
Containing Type
AccessText

Syntax

protected override 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.