Control.FontSize Property


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

 property double FontSize { double get(); void set(double value); };
double FontSize();

void FontSize(double value);
public double FontSize { get; set; }
var double = control.fontSize;
control.fontSize = double;
Public Property FontSize As Double
<control FontSize="double"/>

Property Value



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


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

See also