3 writes to s_defaultFont
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (3)
1565
s_defaultFont
= Application.DefaultFont ?? SystemFonts.MessageBoxFont;
12495
s_defaultFont
= font;
12506
s_defaultFont
= Application.DefaultFont; // Application.s_defaultFontScaled ?? Application.s_defaultFont
5 references to s_defaultFont
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (5)
1563
if (
s_defaultFont
is null)
1566
Debug.Assert(
s_defaultFont
is not null, "defaultFont wasn't set!");
1569
return
s_defaultFont
;
12490
if (
s_defaultFont
is not null) // we need to check only if s_defaultFont already set
12493
if (!
s_defaultFont
.Equals(font)) // the font has changed