Skip to main content

SetFontFamily Method

Sets the value of the attached FontFamilyProperty on a control.

Definition​

Namespace: Avalonia.Controls.Documents
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public static void SetFontFamily(
Control control,
FontFamily value
)

Parameters​

  Control
The control.
  FontFamily
The property value to set.

See Also​

Reference​

TextElement Class
Avalonia.Controls.Documents Namespace