329 references to Height
System.Drawing.Common.Tests (3)
mono\System.Drawing\GraphicsTests.cs (2)
2126
Assert.True(sz.Height > _font.
Height
* 2);
2130
Assert.True(sz.Height > _font.
Height
* 2);
System\Drawing\FontTests.cs (1)
494
Assert.Equal((int)Math.Ceiling(height), font.
Height
);
System.Windows.Forms (22)
System\Windows\Forms\Control.cs (5)
1848
Properties.AddValue(s_fontHeightProperty, (value is null) ? -1 : value.
Height
);
1968
return Properties.AddValue(s_fontHeightProperty, font.
Height
);
1982
localFontHeight = Font.
Height
;
2921
Properties.AddValue(s_fontHeightProperty, (value is null) ? -1 : value.
Height
);
10670
Properties.AddValue(s_fontHeightProperty, scaledFont.
Height
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
157
s_defaultHeight = Control.DefaultFont.
Height
+ 9;
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
150
_fontHeight = Font.
Height
;
157
_fontHeight = Font.
Height
;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (3)
208
boxBounds.Y += font.
Height
/ 2;
209
boxBounds.Height -= font.
Height
/ 2;
314
boxTop += font.
Height
/ 2;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
151
return Font.
Height
+ _listItemBordersHeight;
478
if (Font.
Height
< 0)
638
float tabDistance = 3.6f * Font.
Height
; // about 7 characters
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
369
s_defaultListBoxItemHeight = DefaultFont.
Height
;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5024
rectInvalid.Inflate(1, Font.
Height
+ 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
95
int lineHeight = (int)(1.5 * Font.
Height
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (2)
132
_lineHeight = Font.
Height
+ LogicalToDeviceUnits(2);
238
_lineHeight = Font.
Height
+ 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
437
_cachedRowHeight = Font.
Height
+ 2;
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (1)
258
int fontHeight = Owner.Font.
Height
;
System\Windows\Forms\Form.cs (1)
3727
float height = font.
Height
;
System.Windows.Forms.Design (14)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
190
_listBox.ItemHeight = Font.
Height
+ SystemInformation.BorderSize.Width * 2;
215
int w = 4 + charactersInNumber * (Font.
Height
/ 2);
567
int w = 4 + charactersInNumber * (Font.
Height
/ 2);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
242
Math.Min(Font.
Height
* 10, workingArea.Height / 3));
System\Drawing\Design\ColorEditor.ColorUI.cs (4)
95
_lbSystem.ItemHeight = Font.
Height
+ 2;
96
_lbCommon.ItemHeight = Font.
Height
+ 2;
263
lb.ItemHeight = lb.Font.
Height
;
268
lb.ItemHeight = lb.Font.
Height
;
System\Drawing\Design\CursorEditor.CursorUI.cs (2)
23
ItemHeight = Math.Max(4 + Cursors.Default.Size.Height, Font.
Height
);
73
e.Graphics.DrawString(text, font, brushText, e.Bounds.X + 36, e.Bounds.Y + (e.Bounds.Height - font.
Height
) / 2);
System\Windows\Forms\Design\ControlDesigner.cs (1)
2262
Math.Max(SystemInformation.ToolWindowCaptionHeight - SystemInformation.BorderSize.Height - 2, Control.Font.
Height
),
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (2)
47
_sampleDataGridViewSelected.Size = new Drawing.Size(100, Font.
Height
+ 9);
48
_sampleDataGridView.Size = new Drawing.Size(100, Font.
Height
+ 9);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
814
_selectedColumns.ItemHeight = Font.
Height
+ OWNERDRAWVERTICALBUFFER;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
79
Assert.Equal(control.Font.
Height
, control.FontHeight);
System.Windows.Forms.Tests (289)
CheckedListBoxTests.cs (1)
663
int expectedHeight = checkedListBox.Font.
Height
+ checkedListBox._listItemBordersHeight;
System\Windows\Forms\AxHostTests.cs (4)
76
Assert.Equal(control.Font.
Height
, control.FontHeight);
170
Assert.Equal(control.Font.
Height
, control.FontHeight);
523
Assert.Equal(control.Font.
Height
, control.FontHeight);
529
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ButtonBaseTests.cs (1)
69
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ButtonTests.cs (3)
72
Assert.Equal(control.Font.
Height
, control.FontHeight);
675
Assert.Equal(control.Font.
Height
, control.FontHeight);
681
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\CheckBoxTests.cs (1)
73
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ComboBoxTests.cs (4)
80
Assert.Equal(control.Font.
Height
, control.FontHeight);
90
Assert.Equal(Control.DefaultFont.
Height
+ 2, control.ItemHeight);
994
Assert.Equal(control.Font.
Height
, control.FontHeight);
1000
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ContainerControlTests.cs (5)
80
Assert.Equal(control.Font.
Height
, control.FontHeight);
413
Assert.Equal(control.Font.
Height
, control.FontHeight);
419
Assert.Equal(control.Font.
Height
, control.FontHeight);
434
Assert.Equal(control.Font.
Height
, control.FontHeight);
441
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ControlTests.cs (5)
61
Assert.Equal(control.Font.
Height
, control.FontHeight);
150
Assert.Equal(control.Font.
Height
, control.FontHeight);
246
Assert.Equal(control.Font.
Height
, control.FontHeight);
342
Assert.Equal(control.Font.
Height
, control.FontHeight);
438
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ControlTests.Handlers.cs (6)
1639
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
1646
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
1670
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
1677
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
1716
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
1726
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
System\Windows\Forms\ControlTests.Properties.cs (11)
4843
Assert.Equal(control.Font.
Height
, control.FontHeight);
4849
Assert.Equal(control.Font.
Height
, control.FontHeight);
4857
yield return new object[] { font, font.
Height
};
4883
yield return new object[] { null, Control.DefaultFont.
Height
};
4884
yield return new object[] { font, font.
Height
};
4920
Assert.Equal(control.Font.
Height
, control.FontHeight);
4926
Assert.Equal(control.Font.
Height
, control.FontHeight);
4957
Assert.Equal(control.Font.
Height
, control.FontHeight);
4966
Assert.Equal(control.Font.
Height
, control.FontHeight);
5003
Assert.Equal(control.Font.
Height
, control.FontHeight);
5012
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\DataGridViewCellTests.cs (1)
4893
Assert.Equal(new Size(10, Control.DefaultFont.
Height
+ 9), cell.GetSize(rowIndex));
System\Windows\Forms\DataGridViewRowHeightInfoNeededEventArgsTests.cs (1)
54
Assert.Equal(Control.DefaultFont.
Height
+ 9, row.Height);
System\Windows\Forms\DataGridViewRowTests.cs (35)
33
Assert.Equal(Control.DefaultFont.
Height
+ 9, row.Height);
1792
Assert.Equal(Control.DefaultFont.
Height
+ 9, row.Height);
1809
Assert.Equal(Control.DefaultFont.
Height
+ 9, row.Height);
1820
yield return new object[] { DataGridViewAutoSizeRowsMode.AllHeaders, 2, 1, Control.DefaultFont.
Height
+ 9, 0 };
1821
yield return new object[] { DataGridViewAutoSizeRowsMode.AllCellsExceptHeaders, 2, 1, Control.DefaultFont.
Height
+ 9, 0 };
1822
yield return new object[] { DataGridViewAutoSizeRowsMode.AllCells, 2, 1, Control.DefaultFont.
Height
+ 9, 0 };
1823
yield return new object[] { DataGridViewAutoSizeRowsMode.DisplayedHeaders, 2, 1, Control.DefaultFont.
Height
+ 9, 0 };
1824
yield return new object[] { DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders, 2, 1, Control.DefaultFont.
Height
+ 9, 0 };
1825
yield return new object[] { DataGridViewAutoSizeRowsMode.DisplayedCells, 2, 1, Control.DefaultFont.
Height
+ 9, 0 };
1846
Assert.Equal(Control.DefaultFont.
Height
+ 9, e.Height);
1858
Assert.Equal(Control.DefaultFont.
Height
+ 9, row.Height);
1881
Assert.Equal(Control.DefaultFont.
Height
+ 9, e.Height);
1893
Assert.Equal(Control.DefaultFont.
Height
+ 9, row.Height);
1931
yield return new object[] { autoSizeRowsMode, -1, Control.DefaultFont.
Height
+ 9 };
1932
yield return new object[] { autoSizeRowsMode, 0, Control.DefaultFont.
Height
+ 9 };
1933
yield return new object[] { autoSizeRowsMode, 1, Control.DefaultFont.
Height
+ 9 };
1934
yield return new object[] { autoSizeRowsMode, 3, Control.DefaultFont.
Height
+ 9 };
1935
yield return new object[] { autoSizeRowsMode, 4, Control.DefaultFont.
Height
+ 9 };
1936
yield return new object[] { autoSizeRowsMode, 65536, Control.DefaultFont.
Height
+ 9 };
2032
Assert.Equal(Control.DefaultFont.
Height
+ 9, rowDefaultHeight);
2033
Assert.Equal(Control.DefaultFont.
Height
+ 9, row.Height);
2315
Assert.Equal(Control.DefaultFont.
Height
+ 9, e.Height);
2350
Assert.Equal(Control.DefaultFont.
Height
+ 9, e.Height);
2368
yield return new object[] { 2, 2, Control.DefaultFont.
Height
+ 9 };
2369
yield return new object[] { 3, 3, Control.DefaultFont.
Height
+ 9 };
2370
yield return new object[] { 4, 4, Control.DefaultFont.
Height
+ 9 };
2400
yield return new object[] { autoSizeRowsMode, 2, 2, Control.DefaultFont.
Height
+ 9 };
2401
yield return new object[] { autoSizeRowsMode, 3, 3, Control.DefaultFont.
Height
+ 9 };
2402
yield return new object[] { autoSizeRowsMode, 4, 4, Control.DefaultFont.
Height
+ 9 };
2403
yield return new object[] { autoSizeRowsMode, 65536, 65536, Control.DefaultFont.
Height
+ 9 };
2406
yield return new object[] { DataGridViewAutoSizeRowsMode.None, 2, 2, Control.DefaultFont.
Height
+ 9 };
2407
yield return new object[] { DataGridViewAutoSizeRowsMode.None, 3, 3, Control.DefaultFont.
Height
+ 9 };
2408
yield return new object[] { DataGridViewAutoSizeRowsMode.None, 4, 4, Control.DefaultFont.
Height
+ 9 };
2487
Assert.Equal(Control.DefaultFont.
Height
+ 9, row.Height);
3912
Assert.Equal(Control.DefaultFont.
Height
+ 9, row.Height);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (2)
14
private static readonly int s_preferredHeight = Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3;
77
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\DateTimePickerTests.cs (2)
77
Assert.Equal(control.Font.
Height
, control.FontHeight);
99
Assert.Equal(Control.DefaultFont.
Height
+ 7, control.PreferredHeight);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
93
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
77
Assert.Equal(control.Font.
Height
, control.FontHeight);
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));
99
_sub.FontHeight.Should().Be(_sub.Font.
Height
);
123
_sub.PreferredHeight.Should().Be(Control.DefaultFont.
Height
+ 7);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
74
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\FormTests.cs (1)
95
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\GroupBoxTests.cs (25)
56
Assert.Equal(new Rectangle(3, Control.DefaultFont.
Height
+ 3, 194, 94 - Control.DefaultFont.
Height
), control.DisplayRectangle);
65
Assert.Equal(control.Font.
Height
, control.FontHeight);
83
Assert.Equal(new Size(6, 6 + Control.DefaultFont.
Height
), control.PreferredSize);
569
Assert.Equal(new Rectangle(3, Control.DefaultFont.
Height
+ 3, 194, 94 - Control.DefaultFont.
Height
), control.DisplayRectangle);
578
Assert.Equal(new Rectangle(3, Control.DefaultFont.
Height
+ 3, 194, 94 - Control.DefaultFont.
Height
), control.DisplayRectangle);
582
Assert.Equal(new Rectangle(3, font.
Height
+ 3, 194, 94 - font.
Height
), control.DisplayRectangle);
595
Assert.Equal(new Rectangle(3, font.
Height
+ 3, 194, 94 - font.
Height
), control.DisplayRectangle);
613
updatedFontHeight.Should().Be(newFont.
Height
);
1514
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
1515
Assert.Equal(new Rectangle(3, Control.DefaultFont.
Height
+ 3, 194, 94 - Control.DefaultFont.
Height
), control.DisplayRectangle);
1522
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
1523
Assert.Equal(new Rectangle(3, Control.DefaultFont.
Height
+ 3, 194, 94 - Control.DefaultFont.
Height
), control.DisplayRectangle);
1562
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
1563
Assert.Equal(new Rectangle(3, Control.DefaultFont.
Height
+ 3, 194, 94 - Control.DefaultFont.
Height
), control.DisplayRectangle);
1573
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
1574
Assert.Equal(new Rectangle(3, Control.DefaultFont.
Height
+ 3, 194, 94 - Control.DefaultFont.
Height
), control.DisplayRectangle);
System\Windows\Forms\HScrollBarTests.cs (1)
72
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\LabelTests.cs (1)
65
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ListBoxTests.cs (33)
72
Assert.Equal(control.Font.
Height
, control.FontHeight);
86
Assert.Equal(Control.DefaultFont.
Height
, control.ItemHeight);
100
Assert.Equal(Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3, control.PreferredHeight);
1059
Assert.Equal(control.Font.
Height
, control.FontHeight);
1067
Assert.Equal(control.Font.
Height
, control.FontHeight);
1087
Assert.Equal(control.Font.
Height
, control.FontHeight);
1095
Assert.Equal(control.Font.
Height
, control.FontHeight);
1127
Assert.Equal(control.Font.
Height
, control.FontHeight);
1138
Assert.Equal(control.Font.
Height
, control.FontHeight);
1176
Assert.Equal(control.Font.
Height
, control.FontHeight);
1187
Assert.Equal(control.Font.
Height
, control.FontHeight);
1742
yield return new object[] { DrawMode.Normal, integralHeight, Control.DefaultFont.
Height
, 0 };
1745
yield return new object[] { DrawMode.OwnerDrawFixed, integralHeight, Control.DefaultFont.
Height
, 0 };
1748
yield return new object[] { DrawMode.OwnerDrawVariable, integralHeight, Control.DefaultFont.
Height
, 0 };
1826
Assert.Equal(Control.DefaultFont.
Height
, control.ItemHeight);
1842
Assert.Equal(Control.DefaultFont.
Height
, control.ItemHeight);
2051
yield return new object[] { DrawMode.Normal, BorderStyle.Fixed3D, Control.DefaultFont.
Height
+ extra };
2052
yield return new object[] { DrawMode.Normal, BorderStyle.FixedSingle, Control.DefaultFont.
Height
+ extra };
2053
yield return new object[] { DrawMode.Normal, BorderStyle.None, Control.DefaultFont.
Height
};
2055
yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.Fixed3D, Control.DefaultFont.
Height
+ extra };
2056
yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.FixedSingle, Control.DefaultFont.
Height
+ extra };
2057
yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.None, Control.DefaultFont.
Height
};
2080
yield return new object[] { DrawMode.Normal, BorderStyle.Fixed3D, (Control.DefaultFont.
Height
* 2) + extra };
2081
yield return new object[] { DrawMode.Normal, BorderStyle.FixedSingle, (Control.DefaultFont.
Height
* 2) + extra };
2082
yield return new object[] { DrawMode.Normal, BorderStyle.None, (Control.DefaultFont.
Height
* 2) };
2084
yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.Fixed3D, (Control.DefaultFont.
Height
* 2) + extra };
2085
yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.FixedSingle, (Control.DefaultFont.
Height
* 2) + extra };
2086
yield return new object[] { DrawMode.OwnerDrawFixed, BorderStyle.None, (Control.DefaultFont.
Height
* 2) };
2088
yield return new object[] { DrawMode.OwnerDrawVariable, BorderStyle.Fixed3D, (Control.DefaultFont.
Height
* 2) + extra };
2089
yield return new object[] { DrawMode.OwnerDrawVariable, BorderStyle.FixedSingle, (Control.DefaultFont.
Height
* 2) + extra };
2090
yield return new object[] { DrawMode.OwnerDrawVariable, BorderStyle.None, (Control.DefaultFont.
Height
* 2) };
5149
Assert.Equal(Control.DefaultFont.
Height
, control.GetItemHeight(0));
5172
Assert.Equal(Control.DefaultFont.
Height
, control.GetItemHeight(index));
System\Windows\Forms\ListControlTests.cs (1)
68
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ListViewTests.cs (1)
80
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\MenuStripTests.cs (1)
80
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\MonthCalendarTests.cs (1)
82
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\PanelTests.cs (1)
74
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\PictureBoxTests.cs (2)
476
Assert.Equal(control.Font.
Height
, control.FontHeight);
482
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ProgressBarTests.cs (3)
62
Assert.Equal(control.Font.
Height
, control.FontHeight);
481
Assert.Equal(control.Font.
Height
, control.FontHeight);
487
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\PropertyGridTests.cs (1)
103
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\RadioButtonTests.cs (1)
72
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\RichTextBoxTests.cs (18)
22
private static readonly int s_preferredHeight = Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3;
81
Assert.Equal(control.Font.
Height
, control.FontHeight);
1338
Assert.Equal(control.Font.
Height
, control.FontHeight);
1344
Assert.Equal(control.Font.
Height
, control.FontHeight);
1358
Assert.Equal(control.Font.
Height
, control.FontHeight);
1364
Assert.Equal(control.Font.
Height
, control.FontHeight);
1380
Assert.Equal(control.Font.
Height
, control.FontHeight);
1386
Assert.Equal(control.Font.
Height
, control.FontHeight);
1403
Assert.Equal(control.Font.
Height
, control.FontHeight);
1409
Assert.Equal(control.Font.
Height
, control.FontHeight);
1440
Assert.Equal(control.Font.
Height
, control.FontHeight);
1449
Assert.Equal(control.Font.
Height
, control.FontHeight);
1477
Assert.Equal(control.Font.
Height
, control.FontHeight);
1486
Assert.Equal(control.Font.
Height
, control.FontHeight);
1524
Assert.Equal(control.Font.
Height
, control.FontHeight);
1533
Assert.Equal(control.Font.
Height
, control.FontHeight);
1563
Assert.Equal(control.Font.
Height
, control.FontHeight);
1572
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ScrollableControlTests.cs (1)
73
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ScrollBarTests.cs (3)
62
Assert.Equal(control.Font.
Height
, control.FontHeight);
489
Assert.Equal(control.Font.
Height
, control.FontHeight);
495
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\SplitterTests.cs (3)
63
Assert.Equal(control.Font.
Height
, control.FontHeight);
741
Assert.Equal(control.Font.
Height
, control.FontHeight);
747
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\StatusStripTests.cs (1)
80
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\TabControlTests.cs (1)
65
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
79
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\TabPageTests.cs (2)
79
Assert.Equal(control.Font.
Height
, control.FontHeight);
188
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
76
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
85
Assert.Equal(control.Font.
Height
, control.FontHeight);
1531
Assert.Equal(control.Font.
Height
, control.FontHeight);
1537
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ToolStripPanelTests.cs (1)
76
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\ToolStripTests.cs (6)
95
Assert.Equal(control.Font.
Height
, control.FontHeight);
249
Assert.Equal(control.Font.
Height
, control.FontHeight);
1447
Assert.Equal(control.Font.
Height
, control.FontHeight);
1453
Assert.Equal(control.Font.
Height
, control.FontHeight);
5265
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
5272
Assert.Equal(Control.DefaultFont.
Height
, control.FontHeight);
System\Windows\Forms\TreeViewTests.cs (14)
66
Assert.Equal(control.Font.
Height
, control.FontHeight);
81
Assert.Equal(Control.DefaultFont.
Height
+ 3, control.ItemHeight);
2703
yield return new object[] { font, true, TreeViewDrawMode.Normal, font.
Height
+ 3 };
2704
yield return new object[] { font, true, TreeViewDrawMode.OwnerDrawText, font.
Height
+ 3 };
2705
yield return new object[] { font, true, TreeViewDrawMode.OwnerDrawAll, font.
Height
+ 3 };
2706
yield return new object[] { font, false, TreeViewDrawMode.Normal, font.
Height
+ 3 };
2707
yield return new object[] { font, false, TreeViewDrawMode.OwnerDrawText, font.
Height
+ 3 };
2708
yield return new object[] { font, false, TreeViewDrawMode.OwnerDrawAll, font.
Height
+ 3 };
2711
yield return new object[] { smallFont, true, TreeViewDrawMode.Normal, smallFont.
Height
+ 3 };
2712
yield return new object[] { smallFont, true, TreeViewDrawMode.OwnerDrawText, smallFont.
Height
+ 3 };
2714
yield return new object[] { smallFont, false, TreeViewDrawMode.Normal, smallFont.
Height
+ 3 };
2715
yield return new object[] { smallFont, false, TreeViewDrawMode.OwnerDrawText, smallFont.
Height
+ 3 };
2716
yield return new object[] { smallFont, false, TreeViewDrawMode.OwnerDrawAll, smallFont.
Height
+ 3 };
2734
yield return new object[] { -1, Control.DefaultFont.
Height
+ 3 };
System\Windows\Forms\UpDownBaseTests.cs (32)
44
Assert.Equal(new Rectangle(0, 0, 120, Control.DefaultFont.
Height
+ 7), control.ClientRectangle);
45
Assert.Equal(new Rectangle(0, 0, 120, Control.DefaultFont.
Height
+ 7), control.DisplayRectangle);
46
Assert.Equal(new Size(120, Control.DefaultFont.
Height
+ 7), control.ClientSize);
51
Assert.Equal(new Rectangle(0, 0, 116, Control.DefaultFont.
Height
+ 3), control.ClientRectangle);
52
Assert.Equal(new Rectangle(0, 0, 116, Control.DefaultFont.
Height
+ 3), control.DisplayRectangle);
53
Assert.Equal(new Size(116, Control.DefaultFont.
Height
+ 3), control.ClientSize);
86
Assert.Equal(control.Font.
Height
, control.FontHeight);
108
Assert.Equal(Control.DefaultFont.
Height
+ 7, control.PreferredHeight);
719
yield return new object[] { BorderStyle.Fixed3D, new Size(122, Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3) };
720
yield return new object[] { BorderStyle.FixedSingle, new Size(122, Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3) };
721
yield return new object[] { BorderStyle.None, new Size(122, Control.DefaultFont.
Height
+ 3) };
725
yield return new object[] { BorderStyle.Fixed3D, new Size(123, Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3) };
726
yield return new object[] { BorderStyle.FixedSingle, new Size(121, Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3) };
727
yield return new object[] { BorderStyle.None, new Size(119, Control.DefaultFont.
Height
+ 3) };
756
yield return new object[] { BorderStyle.Fixed3D, 0, 0, new Size(122, Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3) };
757
yield return new object[] { BorderStyle.FixedSingle, 0, 1, new Size(122, Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3) };
758
yield return new object[] { BorderStyle.None, 1, 1, new Size(123, Control.DefaultFont.
Height
+ 3) };
762
yield return new object[] { BorderStyle.Fixed3D, 0, 0, new Size(123, Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3) };
763
yield return new object[] { BorderStyle.FixedSingle, 1, 1, new Size(123, Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3) };
764
yield return new object[] { BorderStyle.None, 2, 1, new Size(123, Control.DefaultFont.
Height
+ 3) };
2755
Assert.Equal(new Size(width, Control.DefaultFont.
Height
+ 7), control.ClientSize);
2756
Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.
Height
+ 7), control.ClientRectangle);
2757
Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.
Height
+ 7), control.DisplayRectangle);
2761
Assert.Equal(new Size(width - 4, Control.DefaultFont.
Height
+ 3), control.ClientSize);
2762
Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.
Height
+ 3), control.ClientRectangle);
2763
Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.
Height
+ 3), control.DisplayRectangle);
2787
Assert.Equal(new Size(width, Control.DefaultFont.
Height
+ 7), control.ClientSize);
2788
Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.
Height
+ 7), control.ClientRectangle);
2789
Assert.Equal(new Rectangle(0, 0, width, Control.DefaultFont.
Height
+ 7), control.DisplayRectangle);
2793
Assert.Equal(new Size(width - 4, Control.DefaultFont.
Height
+ 3), control.ClientSize);
2794
Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.
Height
+ 3), control.ClientRectangle);
2795
Assert.Equal(new Rectangle(0, 0, width - 4, Control.DefaultFont.
Height
+ 3), control.DisplayRectangle);
System\Windows\Forms\UserControlTests.cs (1)
80
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\VScrollBarTests.cs (1)
71
Assert.Equal(control.Font.
Height
, control.FontHeight);
System\Windows\Forms\WebBrowserTests.cs (1)
61
Assert.Equal(control.Font.
Height
, control.FontHeight);
TextBoxBaseTests.cs (28)
16
private static readonly int s_preferredHeight = Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3;
876
Assert.Equal(control.Font.
Height
, control.FontHeight);
882
Assert.Equal(control.Font.
Height
, control.FontHeight);
896
Assert.Equal(control.Font.
Height
, control.FontHeight);
902
Assert.Equal(control.Font.
Height
, control.FontHeight);
918
Assert.Equal(control.Font.
Height
, control.FontHeight);
924
Assert.Equal(control.Font.
Height
, control.FontHeight);
941
Assert.Equal(control.Font.
Height
, control.FontHeight);
947
Assert.Equal(control.Font.
Height
, control.FontHeight);
978
Assert.Equal(control.Font.
Height
, control.FontHeight);
987
Assert.Equal(control.Font.
Height
, control.FontHeight);
1015
Assert.Equal(control.Font.
Height
, control.FontHeight);
1024
Assert.Equal(control.Font.
Height
, control.FontHeight);
1062
Assert.Equal(control.Font.
Height
, control.FontHeight);
1071
Assert.Equal(control.Font.
Height
, control.FontHeight);
1101
Assert.Equal(control.Font.
Height
, control.FontHeight);
1110
Assert.Equal(control.Font.
Height
, control.FontHeight);
2277
yield return new object[] { BorderStyle.None, Control.DefaultFont.
Height
};
5008
yield return new object[] { multiline, wordWrap, BorderStyle.None, Size.Empty, new Size(0, Control.DefaultFont.
Height
) };
5009
yield return new object[] { multiline, wordWrap, BorderStyle.None, new Size(-1, -2), new Size(0, Control.DefaultFont.
Height
) };
5010
yield return new object[] { multiline, wordWrap, BorderStyle.None, new Size(10, 20), new Size(0, Control.DefaultFont.
Height
) };
5011
yield return new object[] { multiline, wordWrap, BorderStyle.None, new Size(30, 40), new Size(0, Control.DefaultFont.
Height
) };
5012
yield return new object[] { multiline, wordWrap, BorderStyle.None, new Size(int.MaxValue, int.MaxValue), new Size(0, Control.DefaultFont.
Height
) };
5069
yield return new object[] { BorderStyle.None, Size.Empty, 0, Control.DefaultFont.
Height
};
5070
yield return new object[] { BorderStyle.None, new Size(-1, -2), 0, Control.DefaultFont.
Height
};
5071
yield return new object[] { BorderStyle.None, new Size(10, 20), 0, Control.DefaultFont.
Height
};
5072
yield return new object[] { BorderStyle.None, new Size(30, 40), 0, Control.DefaultFont.
Height
};
5073
yield return new object[] { BorderStyle.None, new Size(int.MaxValue, int.MaxValue), 0, Control.DefaultFont.
Height
};
TextBoxTests.cs (2)
13
private static readonly int s_preferredHeight = Control.DefaultFont.
Height
+ SystemInformation.BorderSize.Height * 4 + 3;
71
Assert.Equal(control.Font.
Height
, control.FontHeight);
TrackBarTests.cs (3)
64
Assert.Equal(control.Font.
Height
, control.FontHeight);
630
Assert.Equal(control.Font.
Height
, control.FontHeight);
636
Assert.Equal(control.Font.
Height
, control.FontHeight);