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"]!; 239Font = (Font)uis.Styles["DialogFont"]!;
System\Windows\Forms\Design\ToolStripDesignerUtils.cs (1)
393contextMenu.Font = (Font)uis.Styles["DialogFont"];
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (3)
82item.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)
21contextMenuStrip.Font = new Font("Times New Roman", 10.0f, FontStyle.Italic);
System.Windows.Forms.Tests (17)
System\Windows\Forms\ToolStripDropDownTests.cs (17)
1528Font = value 1535control.Font = value; 1556control.Font = font1; 1561control.Font = font1; 1567control.Font = font2; 1572control.Font = null; 1578control.Font = font1; 1603control.Font = font1; 1610control.Font = font1; 1618control.Font = font2; 1625control.Font = null; 1633control.Font = font1; 1668control.Font = font1; 1675control.Font = font1; 1683control.Font = font2; 1690control.Font = null; 1698control.Font = font1;
28 references to Font
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
610Font originalFont = Font; 614if (!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)
29contextMenuStrip.Font.Should().Be(expectedFont);
System.Windows.Forms.Tests (24)
System\Windows\Forms\ToolStripDropDownTests.cs (24)
84Assert.Equal(Control.DefaultFont, control.Font); 85Assert.Equal(control.Font.Height, control.FontHeight); 1476Assert.NotSame(Control.DefaultFont, control.Font); 1477Assert.Same(control.Font, control.Font); 1530Assert.Equal(value ?? Control.DefaultFont, control.Font); 1531Assert.Equal(control.Font.Height, control.FontHeight); 1536Assert.Equal(value ?? Control.DefaultFont, control.Font); 1537Assert.Equal(control.Font.Height, control.FontHeight); 1557Assert.Same(font1, control.Font); 1562Assert.Same(font1, control.Font); 1568Assert.Same(font2, control.Font); 1573Assert.Equal(Control.DefaultFont, control.Font); 1579Assert.Same(font1, control.Font); 1604Assert.Same(font1, control.Font); 1611Assert.Same(font1, control.Font); 1619Assert.Same(font2, control.Font); 1626Assert.Equal(Control.DefaultFont, control.Font); 1634Assert.Same(font1, control.Font); 1669Assert.Same(font1, control.Font); 1676Assert.Same(font1, control.Font); 1684Assert.Same(font2, control.Font); 1691Assert.Equal(Control.DefaultFont, control.Font); 1699Assert.Same(font1, control.Font);