Skip to main content

FormattedText Constructor

Construct a FormattedText object.

Definition​

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public FormattedText(
string textToFormat,
CultureInfo culture,
FlowDirection flowDirection,
Typeface typeface,
double emSize,
IBrush? foreground
)

Parameters​

  String
String of text to be displayed.
  CultureInfo
Culture of text.
  FlowDirection
Flow direction of text.
  Typeface
Type face used to display text.
  Double
Font em size in visual units (1/96 of an inch).
  IBrush
Foreground brush used to render text.

See Also​

Reference​

FormattedText Class
Avalonia.Media Namespace