FormattedText.

FormattedText(string, Typeface, double, TextAlignment, TextWrapping, Size) Constructor

Summary

Initializes a new instance of the FormattedText class.
Namespace
Avalonia.Media
Containing Type
FormattedText

Syntax

public FormattedText(string text, Typeface typeface, double fontSize, TextAlignment textAlignment, TextWrapping textWrapping, Size constraint)

Parameters

Name Type Description
text string
typeface Typeface
fontSize double
textAlignment TextAlignment
textWrapping TextWrapping
constraint Size

Return Value

Type Description
void