Skip to main content

GetFontSize Method

Gets the value of the attached FontSizeProperty on a control.

Definition​

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

public static double GetFontSize(
Control control
)

Parameters​

  Control
The control.

Return Value​

Double
The font size.

See Also​

Reference​

TextElement Class
Avalonia.Controls.Documents Namespace