Skip to main content

SetFontWeight Method

Sets the value of the attached FontWeightProperty on a control.

Definition​

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

public static void SetFontWeight(
Control control,
FontWeight value
)

Parameters​

  Control
The control.
  FontWeight
The property value to set.

See Also​

Reference​

TextElement Class
Avalonia.Controls.Documents Namespace