Base:
property
Font
System.Windows.Forms.Control.Font
1 override of Font
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
355
public override Font
Font
27 writes to Font
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
367
set => base.
Font
= value;
System.Windows.Forms.Tests (23)
System\Windows\Forms\ToolStripDropDownTests.cs (2)
1497
control.
Font
= font2;
1518
control.
Font
= font2;
System\Windows\Forms\ToolStripItemTests.cs (2)
2935
Font
= font
2953
Font
= font
System\Windows\Forms\ToolStripTests.cs (19)
1413
control.
Font
= font2;
1434
control.
Font
= font2;
1444
Font
= value
1451
control.
Font
= value;
1472
control.
Font
= font1;
1477
control.
Font
= font1;
1483
control.
Font
= font2;
1488
control.
Font
= null;
1494
control.
Font
= font1;
1519
control.
Font
= font1;
1526
control.
Font
= font1;
1534
control.
Font
= font2;
1541
control.
Font
= null;
1549
control.
Font
= font1;
1584
control.
Font
= font1;
1591
control.
Font
= font1;
1599
control.
Font
= font2;
1606
control.
Font
= null;
1614
control.
Font
= font1;
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\ToolStripItemTests.Dpi.cs (1)
45
using Font initialFont = toolStrip.
Font
= new("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
WinFormsControlsTest (2)
MenuStripAndCheckedListBox.cs (1)
39
menuStrip1.
Font
= new Font(f.FontFamily, f.Size * factor, f.Style);
ToolStripTests.Designer.cs (1)
138
this.toolStrip4.
Font
=new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold);
53 references to Font
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
361
return base.
Font
;
365
return IsAutoGenerated && OwnerItem is not null ? OwnerItem.Font : base.
Font
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2326
private Font? GetOwnerFont() => Owner?.
Font
;
System.Windows.Forms.Tests (48)
System\Windows\Forms\MenuStripTests.cs (2)
79
Assert.Equal(Control.DefaultFont, control.
Font
);
80
Assert.Equal(control.
Font
.Height, control.FontHeight);
System\Windows\Forms\StatusStripTests.cs (2)
79
Assert.Equal(Control.DefaultFont, control.
Font
);
80
Assert.Equal(control.
Font
.Height, control.FontHeight);
System\Windows\Forms\ToolStripDropDownTests.cs (8)
1493
Assert.NotSame(font1, control.
Font
);
1494
Assert.Same(control.
Font
, control.
Font
);
1498
Assert.Same(font2, control.
Font
);
1514
Assert.NotSame(Control.DefaultFont, control.
Font
);
1515
Assert.Same(control.
Font
, control.
Font
);
1519
Assert.Same(font2, control.
Font
);
System\Windows\Forms\ToolStripTests.cs (36)
94
Assert.Equal(Control.DefaultFont, control.
Font
);
95
Assert.Equal(control.
Font
.Height, control.FontHeight);
248
Assert.Equal(Control.DefaultFont, control.
Font
);
249
Assert.Equal(control.
Font
.Height, control.FontHeight);
1392
Assert.NotSame(Control.DefaultFont, control.
Font
);
1393
Assert.Same(control.
Font
, control.
Font
);
1409
Assert.NotSame(font1, control.
Font
);
1410
Assert.Same(control.
Font
, control.
Font
);
1414
Assert.Same(font2, control.
Font
);
1430
Assert.NotSame(Control.DefaultFont, control.
Font
);
1431
Assert.Same(control.
Font
, control.
Font
);
1435
Assert.Same(font2, control.
Font
);
1446
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1447
Assert.Equal(control.
Font
.Height, control.FontHeight);
1452
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1453
Assert.Equal(control.
Font
.Height, control.FontHeight);
1473
Assert.Same(font1, control.
Font
);
1478
Assert.Same(font1, control.
Font
);
1484
Assert.Same(font2, control.
Font
);
1489
Assert.Equal(Control.DefaultFont, control.
Font
);
1495
Assert.Same(font1, control.
Font
);
1520
Assert.Same(font1, control.
Font
);
1527
Assert.Same(font1, control.
Font
);
1535
Assert.Same(font2, control.
Font
);
1542
Assert.Equal(Control.DefaultFont, control.
Font
);
1550
Assert.Same(font1, control.
Font
);
1585
Assert.Same(font1, control.
Font
);
1592
Assert.Same(font1, control.
Font
);
1600
Assert.Same(font2, control.
Font
);
1607
Assert.Equal(Control.DefaultFont, control.
Font
);
1615
Assert.Same(font1, control.
Font
);
1636
Assert.Same(form.Font, toolStrip1.
Font
);
1656
Assert.Equal(ToolStripManager.DefaultFont, toolStrip1.
Font
);
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\ToolStripItemTests.Dpi.cs (1)
52
Assert.Equal((float)initialFont.Size * factor, toolStrip.
Font
.Size, precision: 1);
WinFormsControlsTest (1)
MenuStripAndCheckedListBox.cs (1)
38
Font f = menuStrip1.
Font
;