329 references to Height
System.Drawing.Common.Tests (3)
mono\System.Drawing\GraphicsTests.cs (2)
2123Assert.True(sz.Height > _font.Height * 2); 2127Assert.True(sz.Height > _font.Height * 2);
System\Drawing\FontTests.cs (1)
494Assert.Equal((int)Math.Ceiling(height), font.Height);
System.Windows.Forms (22)
System\Windows\Forms\Control.cs (5)
1848Properties.AddValue(s_fontHeightProperty, (value is null) ? -1 : value.Height); 1968return Properties.AddValue(s_fontHeightProperty, font.Height); 1982localFontHeight = Font.Height; 2921Properties.AddValue(s_fontHeightProperty, (value is null) ? -1 : value.Height); 10663Properties.AddValue(s_fontHeightProperty, scaledFont.Height);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (1)
157s_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)
208boxBounds.Y += font.Height / 2; 209boxBounds.Height -= font.Height / 2; 314boxTop += font.Height / 2;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (3)
151return Font.Height + _listItemBordersHeight; 478if (Font.Height < 0) 638float tabDistance = 3.6f * Font.Height; // about 7 characters
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
369s_defaultListBoxItemHeight = DefaultFont.Height;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5028rectInvalid.Inflate(1, Font.Height + 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.cs (1)
95int 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)
258int fontHeight = Owner.Font.Height;
System\Windows\Forms\Form.cs (1)
3727float height = font.Height;
System.Windows.Forms.Design (14)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
190_listBox.ItemHeight = Font.Height + SystemInformation.BorderSize.Width * 2; 215int w = 4 + charactersInNumber * (Font.Height / 2); 567int w = 4 + charactersInNumber * (Font.Height / 2);
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
242Math.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; 263lb.ItemHeight = lb.Font.Height; 268lb.ItemHeight = lb.Font.Height;
System\Drawing\Design\CursorEditor.CursorUI.cs (2)
23ItemHeight = Math.Max(4 + Cursors.Default.Size.Height, Font.Height); 73e.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)
2260Math.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)
812_selectedColumns.ItemHeight = Font.Height + OWNERDRAWVERTICALBUFFER;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
79Assert.Equal(control.Font.Height, control.FontHeight);
System.Windows.Forms.Tests (289)
CheckedListBoxTests.cs (1)
663int expectedHeight = checkedListBox.Font.Height + checkedListBox._listItemBordersHeight;
System\Windows\Forms\AxHostTests.cs (4)
76Assert.Equal(control.Font.Height, control.FontHeight); 170Assert.Equal(control.Font.Height, control.FontHeight); 523Assert.Equal(control.Font.Height, control.FontHeight); 529Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ButtonBaseTests.cs (1)
69Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ButtonTests.cs (3)
72Assert.Equal(control.Font.Height, control.FontHeight); 675Assert.Equal(control.Font.Height, control.FontHeight); 681Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\CheckBoxTests.cs (1)
73Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ComboBoxTests.cs (4)
80Assert.Equal(control.Font.Height, control.FontHeight); 90Assert.Equal(Control.DefaultFont.Height + 2, control.ItemHeight); 993Assert.Equal(control.Font.Height, control.FontHeight); 999Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ContainerControlTests.cs (5)
80Assert.Equal(control.Font.Height, control.FontHeight); 413Assert.Equal(control.Font.Height, control.FontHeight); 419Assert.Equal(control.Font.Height, control.FontHeight); 434Assert.Equal(control.Font.Height, control.FontHeight); 441Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ControlTests.cs (5)
61Assert.Equal(control.Font.Height, control.FontHeight); 150Assert.Equal(control.Font.Height, control.FontHeight); 246Assert.Equal(control.Font.Height, control.FontHeight); 342Assert.Equal(control.Font.Height, control.FontHeight); 438Assert.Equal(control.Font.Height, control.FontHeight);
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.Properties.cs (11)
4843Assert.Equal(control.Font.Height, control.FontHeight); 4849Assert.Equal(control.Font.Height, control.FontHeight); 4857yield return new object[] { font, font.Height }; 4883yield return new object[] { null, Control.DefaultFont.Height }; 4884yield return new object[] { font, font.Height }; 4920Assert.Equal(control.Font.Height, control.FontHeight); 4926Assert.Equal(control.Font.Height, control.FontHeight); 4957Assert.Equal(control.Font.Height, control.FontHeight); 4966Assert.Equal(control.Font.Height, control.FontHeight); 5003Assert.Equal(control.Font.Height, control.FontHeight); 5012Assert.Equal(control.Font.Height, control.FontHeight);
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 (2)
14private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3; 77Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\DateTimePickerTests.cs (2)
77Assert.Equal(control.Font.Height, control.FontHeight); 99Assert.Equal(Control.DefaultFont.Height + 7, control.PreferredHeight);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
93Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
77Assert.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)
74Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\FormTests.cs (1)
95Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\GroupBoxTests.cs (25)
56Assert.Equal(new Rectangle(3, Control.DefaultFont.Height + 3, 194, 94 - Control.DefaultFont.Height), control.DisplayRectangle); 65Assert.Equal(control.Font.Height, control.FontHeight); 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); 582Assert.Equal(new Rectangle(3, font.Height + 3, 194, 94 - font.Height), control.DisplayRectangle); 595Assert.Equal(new Rectangle(3, font.Height + 3, 194, 94 - font.Height), control.DisplayRectangle); 613updatedFontHeight.Should().Be(newFont.Height); 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)
72Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\LabelTests.cs (1)
65Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ListBoxTests.cs (33)
72Assert.Equal(control.Font.Height, control.FontHeight); 86Assert.Equal(Control.DefaultFont.Height, control.ItemHeight); 100Assert.Equal(Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3, control.PreferredHeight); 1059Assert.Equal(control.Font.Height, control.FontHeight); 1067Assert.Equal(control.Font.Height, control.FontHeight); 1087Assert.Equal(control.Font.Height, control.FontHeight); 1095Assert.Equal(control.Font.Height, control.FontHeight); 1127Assert.Equal(control.Font.Height, control.FontHeight); 1138Assert.Equal(control.Font.Height, control.FontHeight); 1176Assert.Equal(control.Font.Height, control.FontHeight); 1187Assert.Equal(control.Font.Height, control.FontHeight); 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)
68Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ListViewTests.cs (1)
80Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\MenuStripTests.cs (1)
80Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\MonthCalendarTests.cs (1)
82Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\PanelTests.cs (1)
74Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\PictureBoxTests.cs (2)
476Assert.Equal(control.Font.Height, control.FontHeight); 482Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ProgressBarTests.cs (3)
62Assert.Equal(control.Font.Height, control.FontHeight); 481Assert.Equal(control.Font.Height, control.FontHeight); 487Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\PropertyGridTests.cs (1)
103Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\RadioButtonTests.cs (1)
72Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\RichTextBoxTests.cs (18)
22private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3; 81Assert.Equal(control.Font.Height, control.FontHeight); 1338Assert.Equal(control.Font.Height, control.FontHeight); 1344Assert.Equal(control.Font.Height, control.FontHeight); 1358Assert.Equal(control.Font.Height, control.FontHeight); 1364Assert.Equal(control.Font.Height, control.FontHeight); 1380Assert.Equal(control.Font.Height, control.FontHeight); 1386Assert.Equal(control.Font.Height, control.FontHeight); 1403Assert.Equal(control.Font.Height, control.FontHeight); 1409Assert.Equal(control.Font.Height, control.FontHeight); 1440Assert.Equal(control.Font.Height, control.FontHeight); 1449Assert.Equal(control.Font.Height, control.FontHeight); 1477Assert.Equal(control.Font.Height, control.FontHeight); 1486Assert.Equal(control.Font.Height, control.FontHeight); 1524Assert.Equal(control.Font.Height, control.FontHeight); 1533Assert.Equal(control.Font.Height, control.FontHeight); 1563Assert.Equal(control.Font.Height, control.FontHeight); 1572Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ScrollableControlTests.cs (1)
73Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ScrollBarTests.cs (3)
62Assert.Equal(control.Font.Height, control.FontHeight); 489Assert.Equal(control.Font.Height, control.FontHeight); 495Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\SplitterTests.cs (3)
63Assert.Equal(control.Font.Height, control.FontHeight); 741Assert.Equal(control.Font.Height, control.FontHeight); 747Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\StatusStripTests.cs (1)
80Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\TabControlTests.cs (1)
65Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
79Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\TabPageTests.cs (2)
79Assert.Equal(control.Font.Height, control.FontHeight); 188Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
76Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
85Assert.Equal(control.Font.Height, control.FontHeight); 1531Assert.Equal(control.Font.Height, control.FontHeight); 1537Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ToolStripPanelTests.cs (1)
76Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\ToolStripTests.cs (6)
95Assert.Equal(control.Font.Height, control.FontHeight); 249Assert.Equal(control.Font.Height, control.FontHeight); 1447Assert.Equal(control.Font.Height, control.FontHeight); 1453Assert.Equal(control.Font.Height, control.FontHeight); 5265Assert.Equal(Control.DefaultFont.Height, control.FontHeight); 5272Assert.Equal(Control.DefaultFont.Height, control.FontHeight);
System\Windows\Forms\TreeViewTests.cs (14)
66Assert.Equal(control.Font.Height, control.FontHeight); 81Assert.Equal(Control.DefaultFont.Height + 3, control.ItemHeight); 2703yield return new object[] { font, true, TreeViewDrawMode.Normal, font.Height + 3 }; 2704yield return new object[] { font, true, TreeViewDrawMode.OwnerDrawText, font.Height + 3 }; 2705yield return new object[] { font, true, TreeViewDrawMode.OwnerDrawAll, font.Height + 3 }; 2706yield return new object[] { font, false, TreeViewDrawMode.Normal, font.Height + 3 }; 2707yield return new object[] { font, false, TreeViewDrawMode.OwnerDrawText, font.Height + 3 }; 2708yield return new object[] { font, false, TreeViewDrawMode.OwnerDrawAll, font.Height + 3 }; 2711yield return new object[] { smallFont, true, TreeViewDrawMode.Normal, smallFont.Height + 3 }; 2712yield return new object[] { smallFont, true, TreeViewDrawMode.OwnerDrawText, smallFont.Height + 3 }; 2714yield return new object[] { smallFont, false, TreeViewDrawMode.Normal, smallFont.Height + 3 }; 2715yield return new object[] { smallFont, false, TreeViewDrawMode.OwnerDrawText, smallFont.Height + 3 }; 2716yield return new object[] { smallFont, false, TreeViewDrawMode.OwnerDrawAll, smallFont.Height + 3 }; 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); 86Assert.Equal(control.Font.Height, control.FontHeight); 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)
80Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\VScrollBarTests.cs (1)
71Assert.Equal(control.Font.Height, control.FontHeight);
System\Windows\Forms\WebBrowserTests.cs (1)
61Assert.Equal(control.Font.Height, control.FontHeight);
TextBoxBaseTests.cs (28)
16private static readonly int s_preferredHeight = Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3; 876Assert.Equal(control.Font.Height, control.FontHeight); 882Assert.Equal(control.Font.Height, control.FontHeight); 896Assert.Equal(control.Font.Height, control.FontHeight); 902Assert.Equal(control.Font.Height, control.FontHeight); 918Assert.Equal(control.Font.Height, control.FontHeight); 924Assert.Equal(control.Font.Height, control.FontHeight); 941Assert.Equal(control.Font.Height, control.FontHeight); 947Assert.Equal(control.Font.Height, control.FontHeight); 978Assert.Equal(control.Font.Height, control.FontHeight); 987Assert.Equal(control.Font.Height, control.FontHeight); 1015Assert.Equal(control.Font.Height, control.FontHeight); 1024Assert.Equal(control.Font.Height, control.FontHeight); 1062Assert.Equal(control.Font.Height, control.FontHeight); 1071Assert.Equal(control.Font.Height, control.FontHeight); 1101Assert.Equal(control.Font.Height, control.FontHeight); 1110Assert.Equal(control.Font.Height, control.FontHeight); 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; 71Assert.Equal(control.Font.Height, control.FontHeight);
TrackBarTests.cs (3)
64Assert.Equal(control.Font.Height, control.FontHeight); 630Assert.Equal(control.Font.Height, control.FontHeight); 636Assert.Equal(control.Font.Height, control.FontHeight);