Control.FontSize Property

Definition

Gets or sets the size of the text in this control.

C#
public double FontSize { get; set; }
XAML
<control FontSize="double"/>

Property Value

Double

The size of the text in the Control, in pixels. The default is 11.

Remarks

The unit measure for FontSize is pixels, measuring the line height of the characters in the font. The apparent size of text in the UI can vary based on the current scaling. If you want to use different FontSize values for different scalings, you can do this using the Resource Management System.

Applies to

Toode Versioonid
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also