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