Control.FontSize Control.FontSize Control.FontSize Control.FontSize Property

Definition

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

public : double FontSize { get; set; }
double FontSize();

void FontSize(double fontsize);
public double FontSize { get; set; }
Public ReadWrite Property FontSize As double
<control FontSize="double"/>

Property Value

double double

The size of the text in the Control, in pixels.

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 resources system.

The default value of FontSize is 11.

See also