Base:
property
Font
System.Windows.Forms.ToolStrip.Font
24 writes to Font
System.Windows.Forms.Design (6)
System\Windows\Forms\Design\BaseContextMenuStrip.cs (2)
125
_selectionMenuItem.DropDown.
Font
= (Font)uis.Styles["DialogFont"]!;
239
Font
= (Font)uis.Styles["DialogFont"]!;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
393
contextMenu.
Font
= (Font)uis.Styles["DialogFont"];
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (3)
82
item.DropDown.
Font
= (Font)uis.Styles["DialogFont"];
173
_alignmentToolStripMenuItem.DropDown.
Font
= font;
174
_displayStyleToolStripMenuItem.DropDown.
Font
= font;
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (1)
21
contextMenuStrip.
Font
= new Font("Times New Roman", 10.0f, FontStyle.Italic);
System.Windows.Forms.Tests (17)
System\Windows\Forms\ToolStripDropDownTests.cs (17)
1528
Font
= value
1535
control.
Font
= value;
1556
control.
Font
= font1;
1561
control.
Font
= font1;
1567
control.
Font
= font2;
1572
control.
Font
= null;
1578
control.
Font
= font1;
1603
control.
Font
= font1;
1610
control.
Font
= font1;
1618
control.
Font
= font2;
1625
control.
Font
= null;
1633
control.
Font
= font1;
1668
control.
Font
= font1;
1675
control.
Font
= font1;
1683
control.
Font
= font2;
1690
control.
Font
= null;
1698
control.
Font
= font1;
28 references to Font
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
610
Font originalFont =
Font
;
614
if (!originalFont.Equals(
Font
))
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
295
_tabWidth = TextRenderer.MeasureText("\t",
Font
).Width;
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (1)
29
contextMenuStrip.
Font
.Should().Be(expectedFont);
System.Windows.Forms.Tests (24)
System\Windows\Forms\ToolStripDropDownTests.cs (24)
84
Assert.Equal(Control.DefaultFont, control.
Font
);
85
Assert.Equal(control.
Font
.Height, control.FontHeight);
1476
Assert.NotSame(Control.DefaultFont, control.
Font
);
1477
Assert.Same(control.
Font
, control.
Font
);
1530
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1531
Assert.Equal(control.
Font
.Height, control.FontHeight);
1536
Assert.Equal(value ?? Control.DefaultFont, control.
Font
);
1537
Assert.Equal(control.
Font
.Height, control.FontHeight);
1557
Assert.Same(font1, control.
Font
);
1562
Assert.Same(font1, control.
Font
);
1568
Assert.Same(font2, control.
Font
);
1573
Assert.Equal(Control.DefaultFont, control.
Font
);
1579
Assert.Same(font1, control.
Font
);
1604
Assert.Same(font1, control.
Font
);
1611
Assert.Same(font1, control.
Font
);
1619
Assert.Same(font2, control.
Font
);
1626
Assert.Equal(Control.DefaultFont, control.
Font
);
1634
Assert.Same(font1, control.
Font
);
1669
Assert.Same(font1, control.
Font
);
1676
Assert.Same(font1, control.
Font
);
1684
Assert.Same(font2, control.
Font
);
1691
Assert.Equal(Control.DefaultFont, control.
Font
);
1699
Assert.Same(font1, control.
Font
);