453 references to DefaultFont
System.Windows.Forms (21)
System\Windows\Forms\ActiveX\AxHost.cs (2)
3716return DefaultFont; 3804return DefaultFont;
System\Windows\Forms\ActiveX\Control.ActiveXFontMarshaler.cs (1)
61return hr.Failed ? DefaultFont : Font.FromHfont(nativeFont.Value->hFont);
System\Windows\Forms\ComponentModel\COM2Interop\COM2FontConverter.cs (3)
36_lastFont = Control.DefaultFont; 59_lastFont = Control.DefaultFont; 67managedValue ??= Control.DefaultFont;
System\Windows\Forms\Control.cs (2)
1952s_defaultFontHandleWrapper ??= new FontHandleWrapper(DefaultFont); 5462return AmbientPropertiesService?.Font ?? DefaultFont;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
157s_defaultHeight = Control.DefaultFont.Height + 9;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (1)
480Font = DefaultFont;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
369s_defaultListBoxItemHeight = DefaultFont.Height;
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
399return Control.DefaultFont;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.cs (1)
150return _owner?._listView?.Font ?? Control.DefaultFont;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1487return Control.DefaultFont;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
57return Control.DefaultFont; 106sysFont ??= Control.DefaultFont;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
169Font? uiFont = DefaultFont;
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
139Font? result = _font ?? Control.DefaultFont; 450private bool ShouldSerializeFont() => !Font.Equals(Control.DefaultFont);
System\Windows\Forms\SystemInformation.cs (1)
165return Control.DefaultFont;
System\Windows\Forms\ToolTip\ToolTip.cs (1)
2333font = Control.DefaultFont;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\DataGridViewAddColumnDialog.cs (1)
56Font uiFont = Control.DefaultFont;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
801uiFont = DefaultFont;
System\Windows\Forms\Design\TabOrder.cs (1)
48_tabFont = uisvc is not null && uisvc.Styles["DialogFont"] is Font dialogFont ? dialogFont : DefaultFont;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
78Assert.Equal(Control.DefaultFont, control.Font);
System.Windows.Forms.Tests (427)
System\Windows\Forms\AxHostTests.cs (4)
75Assert.Equal(Control.DefaultFont, control.Font); 169Assert.Equal(Control.DefaultFont, control.Font); 522Assert.Equal(value ?? Control.DefaultFont, control.Font); 528Assert.Equal(value ?? Control.DefaultFont, control.Font);
System\Windows\Forms\ButtonBaseTests.cs (1)
68Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ButtonTests.cs (4)
71Assert.Equal(Control.DefaultFont, control.Font); 674Assert.Equal(value ?? Control.DefaultFont, control.Font); 680Assert.Equal(value ?? Control.DefaultFont, control.Font); 737Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\CheckBoxTests.cs (1)
72Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ComboBoxTests.cs (5)
79Assert.Equal(Control.DefaultFont, control.Font); 90Assert.Equal(Control.DefaultFont.Height + 2, control.ItemHeight); 992Assert.Equal(value ?? Control.DefaultFont, control.Font); 998Assert.Equal(value ?? Control.DefaultFont, control.Font); 1035Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
46Assert.NotEqual(font, Control.DefaultFont);
System\Windows\Forms\ContainerControlTests.cs (6)
79Assert.Equal(Control.DefaultFont, control.Font); 412Assert.Equal(value ?? Control.DefaultFont, control.Font); 418Assert.Equal(value ?? Control.DefaultFont, control.Font); 433Assert.Equal(value ?? Control.DefaultFont, control.Font); 440Assert.Equal(value ?? Control.DefaultFont, control.Font); 478Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ControlTests.ControlCollection.cs (12)
571Assert.Equal(Control.DefaultFont, control.Font); 615Assert.Equal(Control.DefaultFont, control.Font); 651Assert.Equal(Control.DefaultFont, control.Font); 801Assert.Equal(Control.DefaultFont, control.Font); 954Assert.Equal(Control.DefaultFont, control.Font); 1027Assert.Equal(Control.DefaultFont, control.Font); 2268Assert.Equal(Control.DefaultFont, control.Font); 2315Assert.Equal(Control.DefaultFont, control.Font); 2459Assert.Equal(Control.DefaultFont, control.Font); 2592Assert.Equal(Control.DefaultFont, control.Font); 2665Assert.Equal(Control.DefaultFont, control.Font); 2743Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ControlTests.cs (8)
60Assert.Equal(Control.DefaultFont, control.Font); 149Assert.Equal(Control.DefaultFont, control.Font); 245Assert.Equal(Control.DefaultFont, control.Font); 341Assert.Equal(Control.DefaultFont, control.Font); 437Assert.Equal(Control.DefaultFont, control.Font); 493Font font = Control.DefaultFont; 494Assert.Equal(SystemFonts.MessageBoxFont, Control.DefaultFont); 495Assert.Same(font, Control.DefaultFont);
System\Windows\Forms\ControlTests.Handlers.cs (6)
1639Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 1646Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 1670Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 1677Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 1716Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 1726Assert.Equal(Control.DefaultFont.Height, control.FontHeight);
System\Windows\Forms\ControlTests.Methods.cs (3)
6442Assert.Equal(Control.DefaultFont, control.Font); 6447Assert.Equal(Control.DefaultFont, control.Font); 6451Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ControlTests.Properties.cs (24)
4827Assert.Equal(Control.DefaultFont, control.Font); 4842Assert.Equal(value ?? Control.DefaultFont, control.Font); 4848Assert.Equal(value ?? Control.DefaultFont, control.Font); 4869Assert.Equal(value ?? Control.DefaultFont, control.Font); 4875Assert.Equal(value ?? Control.DefaultFont, control.Font); 4883yield return new object[] { null, Control.DefaultFont.Height }; 4898Assert.Equal(value ?? Control.DefaultFont, control.Font); 4904Assert.Equal(value ?? Control.DefaultFont, control.Font); 4919Assert.Equal(value ?? Control.DefaultFont, control.Font); 4925Assert.Equal(value ?? Control.DefaultFont, control.Font); 4956Assert.Equal(value ?? Control.DefaultFont, control.Font); 4965Assert.Equal(value ?? Control.DefaultFont, control.Font); 5002Assert.Equal(value ?? Control.DefaultFont, control.Font); 5011Assert.Equal(value ?? Control.DefaultFont, control.Font); 5051Assert.Equal(Control.DefaultFont, control.Font); 5126Assert.Equal(Control.DefaultFont, control.Font); 5127Assert.Equal(Control.DefaultFont, child1.Font); 5128Assert.Equal(Control.DefaultFont, child2.Font); 5219Assert.Equal(Control.DefaultFont, control.Font); 5252Assert.Equal(Control.DefaultFont, control.Font); 5260Assert.Equal(Control.DefaultFont, control.Font); 5277Assert.Equal(Control.DefaultFont, control.Font); 5285Assert.Equal(Control.DefaultFont, control.Font); 10878Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\DataGridViewCellTests.cs (1)
4893Assert.Equal(new Size(10, Control.DefaultFont.Height + 9), cell.GetSize(rowIndex));
System\Windows\Forms\DataGridViewRowHeightInfoNeededEventArgsTests.cs (1)
54Assert.Equal(Control.DefaultFont.Height + 9, row.Height);
System\Windows\Forms\DataGridViewRowTests.cs (35)
33Assert.Equal(Control.DefaultFont.Height + 9, row.Height); 1792Assert.Equal(Control.DefaultFont.Height + 9, row.Height); 1809Assert.Equal(Control.DefaultFont.Height + 9, row.Height); 1820yield return new object[] { DataGridViewAutoSizeRowsMode.AllHeaders, 2, 1, Control.DefaultFont.Height + 9, 0 }; 1821yield return new object[] { DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders, 2, 1, Control.DefaultFont.Height + 9, 0 }; 1822yield return new object[] { DataGridViewAutoSizeRowsMode.AllCells, 2, 1, Control.DefaultFont.Height + 9, 0 }; 1823yield return new object[] { DataGridViewAutoSizeRowsMode.DisplayedHeaders, 2, 1, Control.DefaultFont.Height + 9, 0 }; 1824yield return new object[] { DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders, 2, 1, Control.DefaultFont.Height + 9, 0 }; 1825yield return new object[] { DataGridViewAutoSizeRowsMode.DisplayedCells, 2, 1, Control.DefaultFont.Height + 9, 0 }; 1846Assert.Equal(Control.DefaultFont.Height + 9, e.Height); 1858Assert.Equal(Control.DefaultFont.Height + 9, row.Height); 1881Assert.Equal(Control.DefaultFont.Height + 9, e.Height); 1893Assert.Equal(Control.DefaultFont.Height + 9, row.Height); 1931yield return new object[] { autoSizeRowsMode, -1, Control.DefaultFont.Height + 9 }; 1932yield return new object[] { autoSizeRowsMode, 0, Control.DefaultFont.Height + 9 }; 1933yield return new object[] { autoSizeRowsMode, 1, Control.DefaultFont.Height + 9 }; 1934yield return new object[] { autoSizeRowsMode, 3, Control.DefaultFont.Height + 9 }; 1935yield return new object[] { autoSizeRowsMode, 4, Control.DefaultFont.Height + 9 }; 1936yield return new object[] { autoSizeRowsMode, 65536, Control.DefaultFont.Height + 9 }; 2032Assert.Equal(Control.DefaultFont.Height + 9, rowDefaultHeight); 2033Assert.Equal(Control.DefaultFont.Height + 9, row.Height); 2315Assert.Equal(Control.DefaultFont.Height + 9, e.Height); 2350Assert.Equal(Control.DefaultFont.Height + 9, e.Height); 2368yield return new object[] { 2, 2, Control.DefaultFont.Height + 9 }; 2369yield return new object[] { 3, 3, Control.DefaultFont.Height + 9 }; 2370yield return new object[] { 4, 4, Control.DefaultFont.Height + 9 }; 2400yield return new object[] { autoSizeRowsMode, 2, 2, Control.DefaultFont.Height + 9 }; 2401yield return new object[] { autoSizeRowsMode, 3, 3, Control.DefaultFont.Height + 9 }; 2402yield return new object[] { autoSizeRowsMode, 4, 4, Control.DefaultFont.Height + 9 }; 2403yield return new object[] { autoSizeRowsMode, 65536, 65536, Control.DefaultFont.Height + 9 }; 2406yield return new object[] { DataGridViewAutoSizeRowsMode.None, 2, 2, Control.DefaultFont.Height + 9 }; 2407yield return new object[] { DataGridViewAutoSizeRowsMode.None, 3, 3, Control.DefaultFont.Height + 9 }; 2408yield return new object[] { DataGridViewAutoSizeRowsMode.None, 4, 4, Control.DefaultFont.Height + 9 }; 2487Assert.Equal(Control.DefaultFont.Height + 9, row.Height); 3912Assert.Equal(Control.DefaultFont.Height + 9, row.Height);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (4)
14private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3; 76Assert.Equal(Control.DefaultFont, control.Font); 744Assert.Equal(expectedFont ?? Control.DefaultFont, control.Font); 955Assert.Equal(expectedFont ?? Control.DefaultFont, control.Font);
System\Windows\Forms\DateTimePickerTests.cs (3)
38Assert.Equal(Control.DefaultFont, control.CalendarFont); 76Assert.Equal(Control.DefaultFont, control.Font); 99Assert.Equal(Control.DefaultFont.Height + 7, control.PreferredHeight);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
92Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
76Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\DomainUpDownTests.cs (8)
57_sub.ClientRectangle.Should().Be(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7)); 58_sub.DisplayRectangle.Should().Be(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7)); 59_sub.ClientSize.Should().Be(new Size(120, Control.DefaultFont.Height + 7)); 64_sub.ClientRectangle.Should().Be(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3)); 65_sub.DisplayRectangle.Should().Be(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3)); 66_sub.ClientSize.Should().Be(new Size(116, Control.DefaultFont.Height + 3)); 98_sub.Font.Should().Be(Control.DefaultFont); 123_sub.PreferredHeight.Should().Be(Control.DefaultFont.Height + 7);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
73Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\FontDialogTests.cs (10)
26Assert.Equal(Control.DefaultFont, dialog.Font); 56Assert.Equal(Control.DefaultFont, dialog.Font); 303Assert.Equal(value ?? Control.DefaultFont, dialog.Font); 307Assert.Equal(value ?? Control.DefaultFont, dialog.Font); 321Assert.Equal(value ?? Control.DefaultFont, dialog.Font); 325Assert.Equal(value ?? Control.DefaultFont, dialog.Font); 341Assert.Equal(Control.DefaultFont, dialog.Font); 358Assert.Equal(Control.DefaultFont, dialog.Font); 615Assert.Equal(Control.DefaultFont, dialog.Font); 749Assert.Equal($"System.Windows.Forms.Tests.FontDialogTests+SubFontDialog, Font: {Control.DefaultFont}", dialog.ToString());
System\Windows\Forms\FormTests.cs (1)
94Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\GroupBoxTests.cs (20)
56Assert.Equal(new Rectangle(3, Control.DefaultFont.Height + 3, 194, 94 - Control.DefaultFont.Height), control.DisplayRectangle); 64Assert.Equal(Control.DefaultFont, control.Font); 83Assert.Equal(new Size(6, 6 + Control.DefaultFont.Height), control.PreferredSize); 569Assert.Equal(new Rectangle(3, Control.DefaultFont.Height + 3, 194, 94 - Control.DefaultFont.Height), control.DisplayRectangle); 578Assert.Equal(new Rectangle(3, Control.DefaultFont.Height + 3, 194, 94 - Control.DefaultFont.Height), control.DisplayRectangle); 1514Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 1515Assert.Equal(new Rectangle(3, Control.DefaultFont.Height + 3, 194, 94 - Control.DefaultFont.Height), control.DisplayRectangle); 1522Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 1523Assert.Equal(new Rectangle(3, Control.DefaultFont.Height + 3, 194, 94 - Control.DefaultFont.Height), control.DisplayRectangle); 1562Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 1563Assert.Equal(new Rectangle(3, Control.DefaultFont.Height + 3, 194, 94 - Control.DefaultFont.Height), control.DisplayRectangle); 1573Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 1574Assert.Equal(new Rectangle(3, Control.DefaultFont.Height + 3, 194, 94 - Control.DefaultFont.Height), control.DisplayRectangle);
System\Windows\Forms\HScrollBarTests.cs (1)
71Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\LabelTests.cs (1)
64Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ListBoxTests.cs (34)
71Assert.Equal(Control.DefaultFont, control.Font); 86Assert.Equal(Control.DefaultFont.Height, control.ItemHeight); 100Assert.Equal(Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3, control.PreferredHeight); 1058Assert.Equal(value ?? Control.DefaultFont, control.Font); 1066Assert.Equal(value ?? Control.DefaultFont, control.Font); 1086Assert.Equal(value ?? Control.DefaultFont, control.Font); 1094Assert.Equal(value ?? Control.DefaultFont, control.Font); 1126Assert.Equal(value ?? Control.DefaultFont, control.Font); 1137Assert.Equal(value ?? Control.DefaultFont, control.Font); 1175Assert.Equal(value ?? Control.DefaultFont, control.Font); 1186Assert.Equal(value ?? Control.DefaultFont, control.Font); 1228Assert.Equal(Control.DefaultFont, control.Font); 1742yield return new object[] { DrawMode.Normal, integralHeight, Control.DefaultFont.Height, 0 }; 1745yield return new object[] { DrawMode.OwnerDrawFixed, integralHeight, Control.DefaultFont.Height, 0 }; 1748yield return new object[] { DrawMode.OwnerDrawVariable, integralHeight, Control.DefaultFont.Height, 0 }; 1826Assert.Equal(Control.DefaultFont.Height, control.ItemHeight); 1842Assert.Equal(Control.DefaultFont.Height, control.ItemHeight); 2051yield return new object[] { DrawMode.Normal, BorderStyle.Fixed3D, Control.DefaultFont.Height + extra }; 2052yield return new object[] { DrawMode.Normal, BorderStyle.FixedSingle, Control.DefaultFont.Height + extra }; 2053yield return new object[] { DrawMode.Normal, BorderStyle.None, Control.DefaultFont.Height }; 2055yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.Fixed3D, Control.DefaultFont.Height + extra }; 2056yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.FixedSingle, Control.DefaultFont.Height + extra }; 2057yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.None, Control.DefaultFont.Height }; 2080yield return new object[] { DrawMode.Normal, BorderStyle.Fixed3D, (Control.DefaultFont.Height * 2) + extra }; 2081yield return new object[] { DrawMode.Normal, BorderStyle.FixedSingle, (Control.DefaultFont.Height * 2) + extra }; 2082yield return new object[] { DrawMode.Normal, BorderStyle.None, (Control.DefaultFont.Height * 2) }; 2084yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.Fixed3D, (Control.DefaultFont.Height * 2) + extra }; 2085yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.FixedSingle, (Control.DefaultFont.Height * 2) + extra }; 2086yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.None, (Control.DefaultFont.Height * 2) }; 2088yield return new object[] { DrawMode.OwnerDrawVariable, BorderStyle.Fixed3D, (Control.DefaultFont.Height * 2) + extra }; 2089yield return new object[] { DrawMode.OwnerDrawVariable, BorderStyle.FixedSingle, (Control.DefaultFont.Height * 2) + extra }; 2090yield return new object[] { DrawMode.OwnerDrawVariable, BorderStyle.None, (Control.DefaultFont.Height * 2) }; 5149Assert.Equal(Control.DefaultFont.Height, control.GetItemHeight(0)); 5172Assert.Equal(Control.DefaultFont.Height, control.GetItemHeight(index));
System\Windows\Forms\ListControlTests.cs (1)
67Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ListViewItemTests.cs (26)
20Assert.Equal(Control.DefaultFont, item.Font); 59Assert.Equal(font ?? Control.DefaultFont, item.Font); 97Assert.Equal(font ?? Control.DefaultFont, item.Font); 135Assert.Equal(font ?? Control.DefaultFont, item.Font); 173Assert.Equal(font ?? Control.DefaultFont, item.Font); 210Assert.Equal(Control.DefaultFont, item.Font); 247Assert.Equal(Control.DefaultFont, item.Font); 285Assert.Equal(Control.DefaultFont, item.Font); 323Assert.Equal(Control.DefaultFont, item.Font); 360Assert.Equal(Control.DefaultFont, item.Font); 398Assert.Equal(Control.DefaultFont, item.Font); 436Assert.Equal(Control.DefaultFont, item.Font); 473Assert.Equal(Control.DefaultFont, item.Font); 511Assert.Equal(Control.DefaultFont, item.Font); 549Assert.Equal(Control.DefaultFont, item.Font); 587Assert.Equal(Control.DefaultFont, item.Font); 624Assert.Equal(Control.DefaultFont, item.Font); 662Assert.Equal(Control.DefaultFont, item.Font); 700Assert.Equal(Control.DefaultFont, item.Font); 737Assert.Equal(Control.DefaultFont, item.Font); 776Assert.Equal(Control.DefaultFont, item.Font); 806Assert.Equal(Control.DefaultFont, item.Font); 971Assert.Equal(value ?? Control.DefaultFont, item.Font); 975Assert.Equal(Control.DefaultFont, item.Font); 987Assert.Equal(value ?? Control.DefaultFont, item.Font); 991Assert.Equal(value ?? Control.DefaultFont, item.Font);
System\Windows\Forms\ListViewSubItemCollectionTests.cs (3)
276Assert.Equal(font ?? Control.DefaultFont, subItem.Font); 406Assert.Equal(font ?? Control.DefaultFont, collection[0].Font); 410Assert.Equal(font ?? Control.DefaultFont, collection[1].Font);
System\Windows\Forms\ListViewSubItemTests.cs (14)
19Assert.Equal(Control.DefaultFont, subItem.Font); 46Assert.Equal(Control.DefaultFont, subItem.Font); 72Assert.Equal(font ?? Control.DefaultFont, subItem.Font); 241Assert.Equal(Control.DefaultFont, subItem.Font); 245Assert.Equal(Control.DefaultFont, subItem.Font); 267Assert.Equal(Control.DefaultFont, subItem.Font); 278Assert.Same(value ?? Control.DefaultFont, subItem.Font); 282Assert.Same(value ?? Control.DefaultFont, subItem.Font); 321Assert.Equal(value ?? Control.DefaultFont, subItem.Font); 325Assert.Equal(value ?? Control.DefaultFont, subItem.Font); 544Assert.Equal(Control.DefaultFont, subItem.Font); 549Assert.Equal(Control.DefaultFont, subItem.Font); 561Assert.Equal(Control.DefaultFont, subItem.Font); 566Assert.Equal(Control.DefaultFont, subItem.Font);
System\Windows\Forms\ListViewTests.cs (1)
79Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\MdiClientTests.cs (1)
50Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\MdiControlStripTests.cs (1)
81Assert.Equal(Control.DefaultFont, mdiControlStrip.Font);
System\Windows\Forms\MenuStripTests.cs (1)
79Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\MonthCalendarTests.cs (1)
81Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\PanelTests.cs (1)
73Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\PictureBoxTests.cs (4)
68Assert.Equal(Control.DefaultFont, control.Font); 475Assert.Equal(value ?? Control.DefaultFont, control.Font); 481Assert.Equal(value ?? Control.DefaultFont, control.Font); 518Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ProgressBarTests.cs (4)
61Assert.Equal(Control.DefaultFont, control.Font); 480Assert.Equal(value ?? Control.DefaultFont, control.Font); 486Assert.Equal(value ?? Control.DefaultFont, control.Font); 523Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\PropertyGridInternal\PropertyGridViewTests.Rendering.cs (5)
42Validate.TextOut("Misc", new(25, 4, 25, 14), stateValidators: State.FontFace(Control.DefaultFont.Name))), 48Validate.TextOut(pt.X.ToString(), new(145, 22, 5, 14), stateValidators: State.FontFace(Control.DefaultFont.Name))), 51Validate.TextOut(nameof(Point.X), new(25, 23, 6, 14), stateValidators: State.FontFace(Control.DefaultFont.Name))), 57Validate.TextOut(pt.Y.ToString(), new(145, 41, 5, 14), stateValidators: State.FontFace(Control.DefaultFont.Name))), 60Validate.TextOut(nameof(Point.Y), new(25, 42, 6, 14), stateValidators: State.FontFace(Control.DefaultFont.Name))),
System\Windows\Forms\PropertyGridTests.cs (1)
102Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\RadioButtonTests.cs (1)
71Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\RichTextBoxTests.cs (21)
22private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3; 80Assert.Equal(Control.DefaultFont, control.Font); 1337Assert.Equal(value ?? Control.DefaultFont, control.Font); 1343Assert.Equal(value ?? Control.DefaultFont, control.Font); 1357Assert.Equal(value ?? Control.DefaultFont, control.Font); 1363Assert.Equal(value ?? Control.DefaultFont, control.Font); 1379Assert.Equal(value ?? Control.DefaultFont, control.Font); 1385Assert.Equal(value ?? Control.DefaultFont, control.Font); 1402Assert.Equal(value ?? Control.DefaultFont, control.Font); 1408Assert.Equal(value ?? Control.DefaultFont, control.Font); 1439Assert.Equal(value ?? Control.DefaultFont, control.Font); 1448Assert.Equal(value ?? Control.DefaultFont, control.Font); 1476Assert.Equal(value ?? Control.DefaultFont, control.Font); 1485Assert.Equal(value ?? Control.DefaultFont, control.Font); 1523Assert.Equal(value ?? Control.DefaultFont, control.Font); 1532Assert.Equal(value ?? Control.DefaultFont, control.Font); 1562Assert.Equal(value ?? Control.DefaultFont, control.Font); 1571Assert.Equal(value ?? Control.DefaultFont, control.Font); 1626Assert.Equal(Control.DefaultFont.Name, format1.FaceName.ToString()); 1627Assert.Equal((int)(Control.DefaultFont.SizeInPoints * 20), format1.yHeight); 1665Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ScrollableControlTests.cs (1)
72Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ScrollBarTests.cs (4)
61Assert.Equal(Control.DefaultFont, control.Font); 488Assert.Equal(value ?? Control.DefaultFont, control.Font); 494Assert.Equal(value ?? Control.DefaultFont, control.Font); 531Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\SplitterPanelTests.cs (1)
66Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\SplitterTests.cs (4)
62Assert.Equal(Control.DefaultFont, control.Font); 740Assert.Equal(value ?? Control.DefaultFont, control.Font); 746Assert.Equal(value ?? Control.DefaultFont, control.Font); 783Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\StatusStripTests.cs (1)
79Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\TabControlTests.cs (1)
64Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
78Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\TabPageTests.cs (2)
78Assert.Equal(Control.DefaultFont, control.Font); 187Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ToolStripButtonTests.cs (6)
55Assert.NotSame(Control.DefaultFont, item.Font); 136Assert.NotSame(Control.DefaultFont, item.Font); 223Assert.NotSame(Control.DefaultFont, item.Font); 313Assert.NotSame(Control.DefaultFont, item.Font); 401Assert.NotSame(Control.DefaultFont, item.Font); 499Assert.NotSame(Control.DefaultFont, item.Font);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
75Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ToolStripControlHostTests.cs (8)
973Assert.Equal(value ?? Control.DefaultFont, item.Font); 974Assert.Equal(value ?? Control.DefaultFont, c.Font); 979Assert.Equal(value ?? Control.DefaultFont, item.Font); 980Assert.Equal(value ?? Control.DefaultFont, c.Font); 1009Assert.Equal(Control.DefaultFont, item.Font); 1017Assert.Equal(Control.DefaultFont, item.Font); 1049Assert.Equal(Control.DefaultFont, item.Font); 1057Assert.Equal(Control.DefaultFont, item.Font);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
53Assert.NotSame(Control.DefaultFont, item.Font); 142Assert.NotSame(Control.DefaultFont, item.Font); 241Assert.NotSame(Control.DefaultFont, item.Font); 349Assert.NotSame(Control.DefaultFont, item.Font);
System\Windows\Forms\ToolStripDropDownTests.cs (10)
84Assert.Equal(Control.DefaultFont, control.Font); 1476Assert.NotSame(Control.DefaultFont, control.Font); 1514Assert.NotSame(Control.DefaultFont, control.Font); 1530Assert.Equal(value ?? Control.DefaultFont, control.Font); 1536Assert.Equal(value ?? Control.DefaultFont, control.Font); 1573Assert.Equal(Control.DefaultFont, control.Font); 1626Assert.Equal(Control.DefaultFont, control.Font); 1627Assert.Equal(Control.DefaultFont, item1.Font); 1628Assert.Equal(Control.DefaultFont, item2.Font); 1691Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ToolStripItemTests.cs (11)
54Assert.NotSame(Control.DefaultFont, item.Font); 139Assert.NotSame(Control.DefaultFont, item.Font); 234Assert.NotSame(Control.DefaultFont, item.Font); 2943Assert.NotSame(Control.DefaultFont, item.Font); 3189Assert.NotSame(Control.DefaultFont, item.Font); 3199Assert.NotSame(Control.DefaultFont, item.Font); 3218Assert.NotSame(Control.DefaultFont, item.Font); 3228Assert.NotSame(Control.DefaultFont, item.Font); 14122Assert.NotSame(Control.DefaultFont, item.Font); 14129Assert.NotSame(Control.DefaultFont, item.Font); 14135Assert.NotSame(Control.DefaultFont, item.Font);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
57Assert.NotSame(Control.DefaultFont, item.Font);
System\Windows\Forms\ToolStripPanelTests.cs (1)
75Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
52Assert.NotSame(Control.DefaultFont, item.Font);
System\Windows\Forms\ToolStripTests.cs (13)
94Assert.Equal(Control.DefaultFont, control.Font); 248Assert.Equal(Control.DefaultFont, control.Font); 1392Assert.NotSame(Control.DefaultFont, control.Font); 1430Assert.NotSame(Control.DefaultFont, control.Font); 1446Assert.Equal(value ?? Control.DefaultFont, control.Font); 1452Assert.Equal(value ?? Control.DefaultFont, control.Font); 1489Assert.Equal(Control.DefaultFont, control.Font); 1542Assert.Equal(Control.DefaultFont, control.Font); 1543Assert.Equal(Control.DefaultFont, item1.Font); 1544Assert.Equal(Control.DefaultFont, item2.Font); 1607Assert.Equal(Control.DefaultFont, control.Font); 5265Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 5272Assert.Equal(Control.DefaultFont.Height, control.FontHeight);
System\Windows\Forms\TreeViewTests.cs (3)
65Assert.Equal(Control.DefaultFont, control.Font); 81Assert.Equal(Control.DefaultFont.Height + 3, control.ItemHeight); 2734yield return new object[] { -1, Control.DefaultFont.Height + 3 };
System\Windows\Forms\UpDownBaseTests.cs (32)
44Assert.Equal(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7), control.ClientRectangle); 45Assert.Equal(new Rectangle(0, 0, 120, Control.DefaultFont.Height + 7), control.DisplayRectangle); 46Assert.Equal(new Size(120, Control.DefaultFont.Height + 7), control.ClientSize); 51Assert.Equal(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3), control.ClientRectangle); 52Assert.Equal(new Rectangle(0, 0, 116, Control.DefaultFont.Height + 3), control.DisplayRectangle); 53Assert.Equal(new Size(116, Control.DefaultFont.Height + 3), control.ClientSize); 85Assert.Equal(Control.DefaultFont, control.Font); 108Assert.Equal(Control.DefaultFont.Height + 7, control.PreferredHeight); 719yield return new object[] { BorderStyle.Fixed3D, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 720yield return new object[] { BorderStyle.FixedSingle, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 721yield return new object[] { BorderStyle.None, new Size(122, Control.DefaultFont.Height + 3) }; 725yield return new object[] { BorderStyle.Fixed3D, new Size(123, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 726yield return new object[] { BorderStyle.FixedSingle, new Size(121, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 727yield return new object[] { BorderStyle.None, new Size(119, Control.DefaultFont.Height + 3) }; 756yield return new object[] { BorderStyle.Fixed3D, 0, 0, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 757yield return new object[] { BorderStyle.FixedSingle, 0, 1, new Size(122, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 758yield return new object[] { BorderStyle.None, 1, 1, new Size(123, Control.DefaultFont.Height + 3) }; 762yield return new object[] { BorderStyle.Fixed3D, 0, 0, new Size(123, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 763yield return new object[] { BorderStyle.FixedSingle, 1, 1, new Size(123, Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3) }; 764yield return new object[] { BorderStyle.None, 2, 1, new Size(123, Control.DefaultFont.Height + 3) }; 2755Assert.Equal(new Size(width, Control.DefaultFont.Height + 7), control.ClientSize); 2756Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.Height + 7), control.ClientRectangle); 2757Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.Height + 7), control.DisplayRectangle); 2761Assert.Equal(new Size(width - 4, Control.DefaultFont.Height + 3), control.ClientSize); 2762Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.Height + 3), control.ClientRectangle); 2763Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.Height + 3), control.DisplayRectangle); 2787Assert.Equal(new Size(width, Control.DefaultFont.Height + 7), control.ClientSize); 2788Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.Height + 7), control.ClientRectangle); 2789Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.Height + 7), control.DisplayRectangle); 2793Assert.Equal(new Size(width - 4, Control.DefaultFont.Height + 3), control.ClientSize); 2794Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.Height + 3), control.ClientRectangle); 2795Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.Height + 3), control.DisplayRectangle);
System\Windows\Forms\UserControlTests.cs (1)
79Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\VScrollBarTests.cs (1)
70Assert.Equal(Control.DefaultFont, control.Font);
System\Windows\Forms\WebBrowserTests.cs (1)
60Assert.Equal(Control.DefaultFont, control.Font);
TextBoxBaseTests.cs (29)
16private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3; 875Assert.Equal(value ?? Control.DefaultFont, control.Font); 881Assert.Equal(value ?? Control.DefaultFont, control.Font); 895Assert.Equal(value ?? Control.DefaultFont, control.Font); 901Assert.Equal(value ?? Control.DefaultFont, control.Font); 917Assert.Equal(value ?? Control.DefaultFont, control.Font); 923Assert.Equal(value ?? Control.DefaultFont, control.Font); 940Assert.Equal(value ?? Control.DefaultFont, control.Font); 946Assert.Equal(value ?? Control.DefaultFont, control.Font); 977Assert.Equal(value ?? Control.DefaultFont, control.Font); 986Assert.Equal(value ?? Control.DefaultFont, control.Font); 1014Assert.Equal(value ?? Control.DefaultFont, control.Font); 1023Assert.Equal(value ?? Control.DefaultFont, control.Font); 1061Assert.Equal(value ?? Control.DefaultFont, control.Font); 1070Assert.Equal(value ?? Control.DefaultFont, control.Font); 1100Assert.Equal(value ?? Control.DefaultFont, control.Font); 1109Assert.Equal(value ?? Control.DefaultFont, control.Font); 1149Assert.Equal(Control.DefaultFont, control.Font); 2277yield return new object[] { BorderStyle.None, Control.DefaultFont.Height }; 5008yield return new object[] { multiline, wordWrap, BorderStyle.None, Size.Empty, new Size(0, Control.DefaultFont.Height) }; 5009yield return new object[] { multiline, wordWrap, BorderStyle.None, new Size(-1, -2), new Size(0, Control.DefaultFont.Height) }; 5010yield return new object[] { multiline, wordWrap, BorderStyle.None, new Size(10, 20), new Size(0, Control.DefaultFont.Height) }; 5011yield return new object[] { multiline, wordWrap, BorderStyle.None, new Size(30, 40), new Size(0, Control.DefaultFont.Height) }; 5012yield return new object[] { multiline, wordWrap, BorderStyle.None, new Size(int.MaxValue, int.MaxValue), new Size(0, Control.DefaultFont.Height) }; 5069yield return new object[] { BorderStyle.None, Size.Empty, 0, Control.DefaultFont.Height }; 5070yield return new object[] { BorderStyle.None, new Size(-1, -2), 0, Control.DefaultFont.Height }; 5071yield return new object[] { BorderStyle.None, new Size(10, 20), 0, Control.DefaultFont.Height }; 5072yield return new object[] { BorderStyle.None, new Size(30, 40), 0, Control.DefaultFont.Height }; 5073yield return new object[] { BorderStyle.None, new Size(int.MaxValue, int.MaxValue), 0, Control.DefaultFont.Height };
TextBoxTests.cs (2)
13private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3; 70Assert.Equal(Control.DefaultFont, control.Font);
TrackBarTests.cs (4)
63Assert.Equal(Control.DefaultFont, control.Font); 629Assert.Equal(value ?? Control.DefaultFont, control.Font); 635Assert.Equal(value ?? Control.DefaultFont, control.Font); 672Assert.Equal(Control.DefaultFont, control.Font);
WinFormsControlsTest (1)
MainForm.cs (1)
244Debug.WriteLine($"Default font: {Control.DefaultFont}", nameof(MainForm));