99 writes to Height
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (2)
99
Label.
Height
+= dialogHeightChange
101
Height
+= dialogHeightChange
PresentationUI (1)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
488
Height
= this.RowTemplate.Height * 4 + this.ColumnHeadersHeight + 2;
System.Windows.Forms (25)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
172
control.
Height
= Twip2Pixel(value, xDirection: false);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2322
Height
= _requestedHeight;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
10170
int horizScrollBarHeight = _horizScrollBar.
Height
= SystemInformation.HorizontalScrollBarHeight;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1181
Height
= PreferredHeight;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
225
Height
= _requestedHeight;
557
Height
= _requestedHeight;
2234
Height
= _requestedHeight;
2482
Height
= Math.Max(Height, ItemHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (3)
79
Height
-= delta;
86
Height
+= delta;
305
_detailsButton.
Height
= _okButton.Height;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3724
DropDownListBox.
Height
= Math.Max(tm.tmHeight + 2, Math.Min(_maxListBoxHeight, DropDownListBox.PreferredHeight));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
591
listBox.
Height
= Math.Max(listBox.Height, listBox.ItemHeight);
622
CreateNewLink.
Height
= linkHeight + DropDownHolderBorder;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
257
Height
= requestedSize;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (3)
1183
Height
= PreferredHeight;
1194
Height
= Math.Max(saveHeight, PreferredHeight + 2); // 2 = fudge factor
1200
Height
= saveHeight;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
387
Height
= _requestedDim;
705
Height
= _autoSize ? PreferredDimension : saveDim;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
641
Height
= PreferredHeight;
806
Height
= PreferredHeight;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
384
Height
+= delta;
System\Windows\Forms\Panels\SplitterPanel.cs (1)
132
set => ((Panel)this).
Height
= value;
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
818
_vScrollBar.
Height
= availableRect.Height - (horizontalScrollNeeded ? _hScrollBar.Height : 0);
System.Windows.Forms.Design (24)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
105
listBox.
Height
= Math.Max(tm.tmHeight + 2, Math.Min(ListBoxMaximumHeight, listBox.PreferredHeight));
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
49
Height
= height;
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
116
EditControl.
Height
= _editRegionSize.Height - TextBoxLineInnerPadding * 2 - 1;
System\Drawing\Design\CursorEditor.CursorUI.cs (1)
22
Height
= 310;
System\Windows\Forms\Design\DesignBindingPicker.cs (13)
142
Height
= ScaleHelper.ScaleToDpi(1, newDpi),
159
_addNewCtrl.
Height
= ScaleHelper.ScaleToPercent(_addNewCtrl.Height, scalePercent);
174
Height
= _addNewCtrl.Height,
182
Height
= ScaleHelper.ScaleToDpi(1, newDpi),
194
_helpTextCtrl.
Height
*= 2;
198
_addNewPanel.
Height
= addNewIcon.Height + 1;
205
_helpTextPanel.
Height
= helpTextHeight + 1;
269
Height
= 1,
299
Height
= addNewHeight,
309
_addNewPanel.
Height
= addNewHeight + 1;
314
Height
= 1,
326
_helpTextCtrl.
Height
*= 2;
334
_helpTextPanel.
Height
= helpTextHeight + 1;
System\Windows\Forms\Design\DesignerFrame.cs (2)
278
_splitter.
Height
= 7;
290
window.
Height
= minHeight;
System\Windows\Forms\Design\DocumentDesigner.cs (2)
232
_componentTray.
Height
= _trayHeight;
906
_componentTray.
Height
= _trayHeight;
System\Windows\Forms\Design\FormatControl.cs (1)
322
formatTypeListBox.
Height
= tableLayoutPanel1.Bottom - formatTypeListBox.Top;
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
481
controls[i].
Height
= size.Height;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
386
_designMenu.
Height
= ScaleHelper.ScaleToInitialSystemDpi(_designMenu.Height);
System.Windows.Forms.Tests (36)
System\Windows\Forms\AccessibleObjects\DataGridViewRowsAccessibleObjectTests.cs (2)
16
Height
= 87
46
Height
= 87
System\Windows\Forms\ControlTests.Methods.cs (5)
1847
Height
= 20,
1861
Height
= 20,
1898
Height
= 20
1912
Height
= 20
1926
Height
= height
System\Windows\Forms\ControlTests.Properties.cs (12)
5729
control.
Height
= value;
5748
control.
Height
= value;
5839
control.
Height
= value;
5858
control.
Height
= value;
5927
control.
Height
= value;
5946
control.
Height
= value;
6035
control.
Height
= value;
6055
control.
Height
= value;
6147
control.
Height
= value;
6169
control.
Height
= value;
6284
control.
Height
= value;
6311
control.
Height
= value;
System\Windows\Forms\ScrollableControlTests.cs (1)
233
Height
= childHeight
System\Windows\Forms\SplitterTests.cs (9)
433
Height
= 40
499
Height
= 40
1145
Height
= 100
1200
Height
= 100
1245
Height
= 100
1317
Height
= 100
1364
Height
= 100
2012
Height
= 100
2113
Height
= 100
System\Windows\Forms\TreeViewTests.cs (1)
7568
treeView.
Height
= 100;
TextBoxBaseTests.cs (1)
3944
Height
= 0
WebBrowserBaseTests.cs (5)
672
Height
= 20,
686
Height
= 20,
723
Height
= 20
737
Height
= 20
751
Height
= height
System.Windows.Forms.UI.IntegrationTests (4)
DragDropTests.cs (1)
1002
Height
= 35,
ListBoxItemAccessibleObjestTests.cs (1)
25
listBox.
Height
= 200;
MDITests.cs (2)
30
form.
Height
+= 100;
53
form.
Height
+= 100;
WinFormsControlsTest (7)
DragDrop.cs (1)
424
Height
= 35,
FormShowInTaskbar.cs (4)
14
Height
= 460;
21
Height
= 60,
34
Height
= 400,
42
Height
= 60,
RichTextBoxes.cs (1)
122
Height
= 150,
TrackBars.cs (1)
50
trackBar1.
Height
= ClientRectangle.Height - trackBar1.Top * 2;
574 references to Height
DesignSurface (1)
MainForm.cs (1)
360
Panel panel = surface.CreateControl<Panel>(new(0, tabPage6.
Height
/ 2), new(0, 0));
Microsoft.VisualBasic.Forms (2)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (2)
95
If labelSizeNeeded.Height > Label.
Height
Then
98
Dim dialogHeightChange As Integer = CInt(labelSizeNeeded.Height - Label.
Height
)
System.Windows.Forms (139)
System\Windows\Forms\ActiveX\AxHost.AxContainer.ExtenderProxy.cs (1)
167
get => Pixel2Twip(GetControl()?.
Height
?? 0, xDirection: false);
System\Windows\Forms\ActiveX\AxHost.cs (1)
1559
SetExtent(Width,
Height
);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (2)
465
PInvoke.SetWindowExtEx(hdcDraw, _control.Width, _control.
Height
, (SIZE*)&sWindowExt);
2010
rect.bottom = rect.top + _control.
Height
;
System\Windows\Forms\BoundsSpecified.cs (1)
40
/// Both <see cref="Control.Width"/> and <see cref="Control.
Height
"/>
System\Windows\Forms\Control.cs (8)
4915
int height = Math.Min(
Height
, targetBounds.Height);
8225
Rectangle shift = new(-Left, -Top, parent.Width, parent.
Height
);
8728
viewportOrg.Y +
Height
);
10047
/// <param name="height">The new <see cref="
Height
" /> property value of the control.</param>
10792
bool newSize = Width != width ||
Height
!= height || _clientWidth != clientWidth || _clientHeight != clientHeight;
11111
client = new Point(Width / 2,
Height
/ 2);
11901
if ((wp->flags & SET_WINDOW_POS_FLAGS.SWP_NOSIZE) == 0 && (wp->cx != Width || wp->cy !=
Height
))
12634
if (sizeProperty is not null && !sizeProperty.IsReadOnly && (bounds.Width != Width || bounds.Height !=
Height
))
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
384
Control.
Height
- (2 * ButtonBorderSize));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (3)
462
_horizScrollBar.Top = ClientRectangle.Height - _horizScrollBar.
Height
;
2125
rectDisplay.Height -= _horizScrollBar.
Height
;
2778
internal int HorizontalScrollBarHeight => _horizScrollBar.
Height
;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (7)
4544
int oldThumbHeight = Math.Max(((_vertScrollBar.
Height
- 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange) / _vertScrollBar.Maximum, 8);
4555
(_vertScrollBar.
Height
- 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange / _vertScrollBar.Maximum,
9007
minimumHeight += _horizScrollBar.
Height
;
10310
_horizScrollBar.
Height
);
10327
_horizScrollBar.
Height
);
18824
pt.Y +=
Height
;
29979
client = new Point(Width / 2,
Height
/ 2);
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (15)
404
if (!Application.RenderWithVisualStyles || Width < 10 ||
Height
< 10)
434
new Rectangle(0, 0, Width,
Height
),
445
new Rectangle(0, 0, Width,
Height
),
551
0, boxTop, 0,
Height
, // Left
552
0,
Height
- 1, Width,
Height
- 1, // Bottom
555
Width - 1, boxTop, Width - 1,
Height
- 1 // Right
575
1, boxTop, 1,
Height
- 1, // Left
576
0,
Height
- 1, Width,
Height
- 1, // Bottom
579
Width - 1, boxTop - 1, Width - 1,
Height
- 1 // Right
584
0, boxTop, 0,
Height
- 2, // Left
585
0,
Height
- 2, Width - 1,
Height
- 2, // Bottom
588
Width - 2, boxTop - 1, Width - 2,
Height
- 2 // Right
System\Windows\Forms\Controls\Labels\Label.cs (2)
88
_requestedHeight =
Height
;
1435
Rectangle rectInScreen = RectangleToScreen(new Rectangle(0, 0, Width,
Height
));
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (4)
131
_requestedHeight =
Height
;
720
height =
Height
;
2085
if (!_integralHeightAdjust && height !=
Height
)
2482
Height = Math.Max(
Height
, ItemHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.cs (1)
84
Rectangle dropDownButtonRect = new(0, 0, Width,
Height
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (3)
73
int delta = _detailsTextBox.
Height
+ 8;
305
_detailsButton.Height = _okButton.
Height
;
310
int y = _detailsButton.Location.Y + _detailsButton.
Height
+ _detailsButton.Margin.Bottom;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
65
return
Height
/ _lineHeight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
1428
if (rectScreen.Y + rectScreen.Height < (size.Height + location.Y + EditTextBox.
Height
))
3728
bool resizable = DropDownListBox.Items.Count > (DropDownListBox.
Height
/ DropDownListBox.ItemHeight);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (8)
297
Size newSize = new(2 * DropDownHolderBorder + _currentControl.Width, 2 * DropDownHolderBorder + _currentControl.
Height
);
364
Rectangle bottomGrip = new(0,
Height
- s_resizeGripSize, s_resizeGripSize, s_resizeGripSize);
375
else if (!_resizeUp && Math.Abs(
Height
- y) < s_resizeBorderSize)
510
Rectangle lRect = new(0, _resizeUp ? 0 :
Height
- s_resizeGripSize, s_resizeGripSize, s_resizeGripSize);
514
int y = _resizeUp ? (s_resizeBarSize - 1) : (
Height
- s_resizeBarSize);
591
listBox.Height = Math.Max(listBox.
Height
, listBox.ItemHeight);
600
Size size = new(2 * DropDownHolderBorder + control.Width, 2 * DropDownHolderBorder + control.
Height
);
611
int linkHeight = CreateNewLink.
Height
;
System\Windows\Forms\Controls\Splitter\Splitter.cs (3)
663
dockHeight += ctl.
Height
;
785
size = splitTarget.
Height
+ delta;
788
size = splitTarget.
Height
- delta;
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (5)
108
_requestedHeight =
Height
;
1187
int curHeight =
Height
;
1240
if (Width == 0 ||
Height
== 0)
1765
if (!_integralHeightAdjust && height !=
Height
)
2044
client = new Point(Width / 2,
Height
/ 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
136
_imageMarginBounds.Height =
Height
;
416
_imageMarginBounds = new Rectangle(0, 0, checkAndImageMarginWidth,
Height
);
System\Windows\Forms\Controls\ToolStrips\ToolStripGrip.cs (1)
86
preferredSize = new Size(GripThickness, ParentInternal.
Height
);
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
96
bounds.Height = ParentInternal.
Height
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
444
int controlToDragWidth = (toolStripToDrag.AutoSize) ? toolStripToDrag.PreferredSize.Height : toolStripToDrag.
Height
;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (3)
933
g.FillRectangle(brush, toolStrip.Width - 1, toolStrip.
Height
- 2, 1, 1);
934
g.FillRectangle(brush, toolStrip.Width - 2, toolStrip.
Height
- 1, 1, 1);
1149
b.TranslateTransform(parent.Width - control.Location.X, parent.
Height
- control.Location.Y);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (2)
149
insertionRect = new Rectangle(item.Bounds.Right, _owner.Margin.Top, ToolStrip.s_insertionBeamWidth, _owner.
Height
- (_owner.Margin.Vertical) - 1);
152
insertionRect = new Rectangle(item.Bounds.Left, _owner.Margin.Top, ToolStrip.s_insertionBeamWidth, _owner.
Height
- (_owner.Margin.Vertical) - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
775
vsRenderer.DrawBackground(e.Graphics, new Rectangle(0, 0, e.ToolStrip.Width - 1, e.ToolStrip.
Height
- 1));
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (5)
117
using RegionScope hTotalRegion = new(0, 0, Width,
Height
);
259
g.FillRectangle(brush, 0, 0, clientRect.Left,
Height
); // left border
260
g.FillRectangle(brush, 0, clientRect.Bottom, Width,
Height
- clientRect.Height); // bottom border
261
g.FillRectangle(brush, clientRect.Right, 0, Width - clientRect.Right,
Height
); // right border
265
g.DrawRectangle(pen, 0, 0, Width - 1,
Height
- 1);
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
1943
Height
,
1956
Height
,
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
1356
client = new Point(Width / 2,
Height
/ 2);
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.WebBrowserBaseNativeWindow.cs (1)
48
wp->cy = _webBrowserBase.
Height
;
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
378
int delta = _details.
Height
+ _scaledHeightPadding;
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.cs (1)
233
y = _control.Top + (_control.
Height
- size.Height) / 2;
System\Windows\Forms\Form.cs (3)
3915
p.Y = Math.Max(screenRect.Y, screenRect.Y + (screenRect.Height -
Height
) / 2);
4355
Point pointToSnap = new(button.Left + button.Width / 2, button.Top + button.
Height
/ 2);
5225
if (WindowState == FormWindowState.Normal && (
Height
!= height || Width != width))
System\Windows\Forms\Layout\CommonProperties.cs (1)
265
/// <see cref="Control.Width"/>, <see cref="Control.
Height
"/>, <see cref="Control.Bounds"/>, property. (Its the
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1385
float yScaleFactor = (float)suggestedRectangle.Height /
Height
;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (34)
364
_panelSize =
Height
- SplitterDistanceInternal - SplitterWidthInternal;
397
return (
Height
>= Panel1MinSize + SplitterWidthInternal + Panel2MinSize);
678
if (value + SplitterWidthInternal >
Height
- Panel2MinSize)
680
value =
Height
- Panel2MinSize - SplitterWidthInternal;
705
_panelSize =
Height
- SplitterDistance - SplitterWidthInternal;
968
_splitterDistance = (_splitterDistance + SplitterWidth >
Height
- Panel2MinSize - _borderSize) ? _splitterDistance - SplitterIncrement : _splitterDistance;
1097
y = Math.Max(Math.Min(y,
Height
- Panel2MinSize), Panel1MinSize);
1266
if (DesignMode &&
Height
!= DefaultSize.Height && value + Panel2MinSize + SplitterWidth >
Height
)
1295
if (DesignMode &&
Height
!= DefaultSize.Height && value + Panel1MinSize + SplitterWidth >
Height
)
1324
if (DesignMode && value + Panel1MinSize + Panel2MinSize >
Height
)
1380
r.Height =
Height
;
1527
return Math.Max(Math.Min(size,
Height
- Panel2MinSize), Panel1MinSize);
1574
_splitterRect.Height =
Height
;
1604
else if (
Height
== 0)
1619
Panel1.Size = new Size(_panelSize,
Height
);
1620
Panel2.Size = new Size(Math.Max(Width - _panelSize - SplitterWidthInternal, Panel2MinSize),
Height
);
1625
Panel2.Size = new Size(_panelSize,
Height
);
1628
Panel1.HeightInternal =
Height
;
1639
Panel1.HeightInternal =
Height
;
1640
Panel2.Size = new Size(Math.Max(Width - _splitterDistance - SplitterWidthInternal, Panel2MinSize),
Height
);
1679
Panel2.Size = new Size(Width, Math.Max(
Height
- panel2Start, Panel2MinSize));
1686
_splitterDistance = Math.Max(
Height
- Panel2.Height - SplitterWidthInternal, Panel1MinSize);
1698
_splitterDistance = Math.Max((int)(Math.Floor(
Height
/ _ratioHeight)), Panel1MinSize);
1704
Panel2.Size = new Size(Width, Math.Max(
Height
- panel2Start, Panel2MinSize));
2122
if (size + SplitterWidthInternal <=
Height
- Panel2MinSize - _borderSize)
2176
Panel1.HeightInternal =
Height
;
2178
Panel2.Size = new Size(Width - _splitterDistance - SplitterWidthInternal,
Height
);
2228
Panel2.Size = new Size(Width,
Height
- panel2Start);
2236
_ratioHeight = (
Height
/ (double)(Panel1.Height) > 0) ?
Height
/ (double)(Panel1.Height) : _ratioHeight;
2255
_ratioHeight = (
Height
/ (double)(_splitterDistance) > 0) ?
Height
/ (double)(_splitterDistance) : _ratioHeight;
System\Windows\Forms\Panels\SplitterPanel.cs (2)
125
get => Collapsed ? 0 : base.
Height
;
131
get => ((Panel)this).
Height
;
System\Windows\Forms\Printing\PrintPreviewControl.cs (8)
445
rect.Height -= _hScrollBar.
Height
;
462
private Rectangle FocusRectangle => new(0, 0, Width - 1,
Height
- 1);
464
private Rectangle ResizeBoxRectangle => new(_vScrollBar.Left, _hScrollBar.Top, _vScrollBar.Width, _hScrollBar.
Height
);
801
_hScrollBar.Top = availableRect.Bottom - _hScrollBar.
Height
;
818
_vScrollBar.Height = availableRect.Height - (horizontalScrollNeeded ? _hScrollBar.
Height
: 0);
835
offset: (horizontalScrollNeeded ? _hScrollBar.
Height
: 0));
855
bool vertical = _virtualSize.Height > displaySize.Height && displaySize.Height > _hScrollBar.
Height
;
864
vertical = _virtualSize.Height > (displaySize.Height - _hScrollBar.
Height
);
System.Windows.Forms.Design (43)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
196
Rectangle bounds = new(0, 0, Width,
Height
);
266
ContextMenuStrip.Show(this, 0,
Height
);
System\ComponentModel\Design\DesignerActionPanel.cs (1)
488
e.Graphics.DrawRectangle(borderPen, new Rectangle(0, 0, Width - 1,
Height
- 1));
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (5)
70
ButtonRenderer.DrawButton(g, new Rectangle(-1, -1, Width + 2,
Height
+ 2), "…", Font, Focused, buttonState);
93
ComboBoxRenderer.DrawDropDownButton(g, new Rectangle(0, 0, Width,
Height
), state);
116
new Rectangle(-1, -1, Width + 2,
Height
+ 2),
139
(
Height
- imageHeight + 1) / 2,
155
ControlPaint.DrawFocusRectangle(g, new Rectangle(2, 2, Width - 5,
Height
- 5));
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.FlyoutDialog.cs (1)
37
int height = Math.Max(_hostedControl.
Height
, SystemInformation.MinimizedWindowSize.Height);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
557
(targetControl.
Height
== minHeight))
935
if (propHeight is not null && _resizeComponents[i].resizeControl.
Height
!= _resizeComponents[i].resizeBounds.Height)
937
propHeight.SetValue(_resizeComponents[i].resizeControl, _resizeComponents[i].resizeControl.
Height
);
System\Windows\Forms\Design\ComponentTray.cs (1)
2776
int height = o1.
Height
/ 2;
System\Windows\Forms\Design\ControlCommandSet.cs (4)
501
lines.Add(new SnapLine(SnapLineType.Bottom, pt.Y + primaryControl.
Height
- 1));
502
lines.Add(new SnapLine(SnapLineType.Horizontal, pt.Y + primaryControl.
Height
+ primaryControl.Margin.Bottom, SnapLine.MarginBottom, SnapLinePriority.Always));
718
primaryControl.Width + moveOffsetX, primaryControl.
Height
+ moveOffsetY);
730
moveOffsetY = newRect.Height - primaryControl.
Height
;
System\Windows\Forms\Design\ControlDesigner.cs (1)
349
int height = Control.
Height
;
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (3)
306
_sampleDataGridView.Rows[0].Height = _sampleDataGridView.
Height
;
309
_sampleDataGridViewSelected.Rows[0].Height = _sampleDataGridViewSelected.
Height
;
332
dataGridView.Rows[0].Height = dataGridView.
Height
;
System\Windows\Forms\Design\DesignBindingPicker.cs (8)
159
_addNewCtrl.Height = ScaleHelper.ScaleToPercent(_addNewCtrl.
Height
, scalePercent);
173
Width = _addNewCtrl.
Height
,
174
Height = _addNewCtrl.
Height
,
196
int helpTextHeight = ScaleHelper.ScaleToPercent(_helpTextCtrl.
Height
, scalePercent);
198
_addNewPanel.Height = addNewIcon.
Height
+ 1;
284
int addNewHeight = _addNewCtrl.
Height
;
285
int addNewWidth = _addNewCtrl.
Height
;
327
int helpTextHeight = ScaleHelper.ScaleToInitialSystemDpi(_helpTextCtrl.
Height
);
System\Windows\Forms\Design\DesignerFrame.cs (1)
288
if (window.
Height
< minHeight)
System\Windows\Forms\Design\DesignerUtils.cs (2)
391
Math.Max(control.
Height
, s_minimumControlBitmapSize),
424
Math.Max(control.
Height
, s_minimumControlBitmapSize),
System\Windows\Forms\Design\DocumentDesigner.cs (1)
226
get => _componentTray is not null ? _componentTray.
Height
: _trayHeight;
System\Windows\Forms\Design\FormatControl.cs (4)
360
tableLayoutPanel1.MinimumSize = new Drawing.Size(tableLayoutPanel1.Width, tableLayoutPanel1.
Height
);
374
minHeight = nullValueLabel.
Height
;
378
minHeight = Math.Max(minHeight, secondRowLabel.
Height
);
382
minHeight = Math.Max(minHeight, secondRowLabel.
Height
);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
420
if (newChild.Left == 0 && newChild.Top == 0 && newChild.Width >= Control.Width && newChild.
Height
>= Control.
Height
)
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
386
_designMenu.Height = ScaleHelper.ScaleToInitialSystemDpi(_designMenu.
Height
);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
1236
ToolStripItem.Height = _editorNode.EditorToolStrip.
Height
;
1254
boundsInAdornerWindow.Y += (ToolStripItem.Height - _editorNode.EditorToolStrip.
Height
) / 2;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
549
nameof(ToolStripPanel.
Height
),
System.Windows.Forms.Design.Tests (7)
System\ComponentModel\Design\ByteViewerTests.cs (7)
37
Assert.Equal(new Rectangle(0, 0, control.Width, control.
Height
), control.Bounds);
45
Assert.Equal(new Rectangle(0, 0, control.Width, control.
Height
), control.ClientRectangle);
46
Assert.Equal(new Size(control.Width, control.
Height
), control.ClientSize);
67
Assert.Equal(new Rectangle(0, 0, control.Width, control.
Height
), control.DisplayRectangle);
85
Assert.True(control.
Height
> 0);
118
Assert.Equal(new Size(control.Width, control.
Height
), control.Size);
143
Assert.Equal(control.
Height
, createParams.Height);
System.Windows.Forms.Tests (370)
System\Windows\Forms\AxHostTests.cs (2)
82
Assert.Equal(23, control.
Height
);
176
Assert.Equal(23, control.
Height
);
System\Windows\Forms\ButtonBaseTests.cs (1)
74
Assert.Equal(23, control.
Height
);
System\Windows\Forms\ButtonRenderingTests.cs (1)
244
new Rectangle(0, 0, button.Width - 1, button.
Height
- 1),
System\Windows\Forms\ButtonTests.cs (1)
77
Assert.Equal(23, control.
Height
);
System\Windows\Forms\CheckBoxTests.cs (1)
78
Assert.Equal(24, control.
Height
);
System\Windows\Forms\ComboBoxTests.cs (4)
88
Assert.Equal(control.PreferredHeight, control.
Height
);
2730
comboBox.
Height
.Should().Be(23);
2734
comboBox.
Height
.Should().Be(23);
2740
comboBox.
Height
.Should().Be(150);
System\Windows\Forms\ContainerControlTests.cs (1)
85
Assert.Equal(0, control.
Height
);
System\Windows\Forms\ControlTests.cs (5)
66
Assert.Equal(0, control.
Height
);
155
Assert.Equal(0, control.
Height
);
251
Assert.Equal(height, control.
Height
);
347
Assert.Equal(0, control.
Height
);
443
Assert.Equal(height, control.
Height
);
System\Windows\Forms\ControlTests.Methods.cs (74)
7394
Assert.Equal(height, control.
Height
);
7413
Assert.Equal(height, control.
Height
);
7505
Assert.Equal(expectedHeight, control.
Height
);
7524
Assert.Equal(expectedHeight, control.
Height
);
7603
Assert.Equal(height, control.
Height
);
7622
Assert.Equal(height, control.
Height
);
7721
Assert.Equal(height, control.
Height
);
7741
Assert.Equal(height, control.
Height
);
7844
Assert.Equal(expectedHeight, control.
Height
);
7866
Assert.Equal(expectedHeight, control.
Height
);
7992
Assert.Equal(expectedHeight, control.
Height
);
8019
Assert.Equal(expectedHeight, control.
Height
);
8181
Assert.Equal(expectedHeight, control.
Height
);
8200
Assert.Equal(expectedHeight, control.
Height
);
8292
Assert.Equal(expectedHeight, control.
Height
);
8311
Assert.Equal(expectedHeight, control.
Height
);
8390
Assert.Equal(expectedHeight, control.
Height
);
8409
Assert.Equal(expectedHeight, control.
Height
);
8578
Assert.Equal(expectedHeight, control.
Height
);
8598
Assert.Equal(expectedHeight, control.
Height
);
8701
Assert.Equal(expectedHeight, control.
Height
);
8723
Assert.Equal(expectedHeight, control.
Height
);
8849
Assert.Equal(expectedHeight, control.
Height
);
8876
Assert.Equal(expectedHeight, control.
Height
);
8995
Assert.Equal(height, control.
Height
);
9016
Assert.Equal(height, control.
Height
);
9137
Assert.Equal(expectedHeight, control.
Height
);
9158
Assert.Equal(expectedHeight, control.
Height
);
9266
Assert.Equal(height, control.
Height
);
9287
Assert.Equal(height, control.
Height
);
9403
Assert.Equal(height, control.
Height
);
9425
Assert.Equal(height, control.
Height
);
9558
Assert.Equal(expectedHeight, control.
Height
);
9582
Assert.Equal(expectedHeight, control.
Height
);
9716
Assert.Equal(expectedHeight, control.
Height
);
9745
Assert.Equal(expectedHeight, control.
Height
);
9827
Assert.Equal(expectedSize.Height, control.
Height
);
9843
Assert.Equal(expectedSize.Height, control.
Height
);
9875
Assert.Equal(expectedSize.Height, control.
Height
);
9894
Assert.Equal(expectedSize.Height, control.
Height
);
10350
Assert.Equal(0, control.
Height
);
10369
Assert.Equal(0, control.
Height
);
10417
Assert.True(control.
Height
>= 0);
10450
Assert.True(control.
Height
>= 0);
10524
Assert.Equal(0, control.
Height
);
10543
Assert.Equal(0, control.
Height
);
10616
Assert.Equal(0, control.
Height
);
10635
Assert.Equal(0, control.
Height
);
10707
Assert.Equal(0, control.
Height
);
10729
Assert.Equal(0, control.
Height
);
10774
Assert.Equal(4, control.
Height
);
10796
Assert.Equal(4, control.
Height
);
10852
Assert.Equal(4, control.
Height
);
10878
Assert.Equal(4, control.
Height
);
10964
Assert.Equal(height, control.
Height
);
10983
Assert.Equal(height, control.
Height
);
11075
Assert.Equal(height, control.
Height
);
11094
Assert.Equal(height, control.
Height
);
11173
Assert.Equal(height, control.
Height
);
11192
Assert.Equal(height, control.
Height
);
11282
Assert.Equal(height, control.
Height
);
11302
Assert.Equal(height, control.
Height
);
11405
Assert.Equal(height, control.
Height
);
11427
Assert.Equal(height, control.
Height
);
11534
Assert.Equal(height, control.
Height
);
11561
Assert.Equal(height, control.
Height
);
11659
Assert.Equal(height, control.
Height
);
11678
Assert.Equal(height, control.
Height
);
11768
Assert.Equal(height, control.
Height
);
11788
Assert.Equal(height, control.
Height
);
11903
Assert.Equal(height, control.
Height
);
11925
Assert.Equal(height, control.
Height
);
12032
Assert.Equal(height, control.
Height
);
12059
Assert.Equal(height, control.
Height
);
System\Windows\Forms\ControlTests.Properties.cs (76)
2489
Assert.Equal(height, control.
Height
);
2508
Assert.Equal(height, control.
Height
);
2578
Assert.Equal(expectedHeight, control.
Height
);
2597
Assert.Equal(expectedHeight, control.
Height
);
2663
Assert.Equal(height, control.
Height
);
2682
Assert.Equal(height, control.
Height
);
2768
Assert.Equal(height, control.
Height
);
2788
Assert.Equal(height, control.
Height
);
2868
Assert.Equal(expectedHeight, control.
Height
);
2890
Assert.Equal(expectedHeight, control.
Height
);
2993
Assert.Equal(expectedHeight, control.
Height
);
3020
Assert.Equal(expectedHeight, control.
Height
);
3392
Assert.Equal(expectedSize.Height, control.
Height
);
3408
Assert.Equal(expectedSize.Height, control.
Height
);
3455
Assert.Equal(expectedSize.Height, control.
Height
);
3474
Assert.Equal(expectedSize.Height, control.
Height
);
5739
Assert.Equal(value, control.
Height
);
5758
Assert.Equal(value, control.
Height
);
5849
Assert.Equal(expectedHeight, control.
Height
);
5868
Assert.Equal(expectedHeight, control.
Height
);
5937
Assert.Equal(value, control.
Height
);
5956
Assert.Equal(value, control.
Height
);
6045
Assert.Equal(value, control.
Height
);
6065
Assert.Equal(value, control.
Height
);
6157
Assert.Equal(expectedHeight, control.
Height
);
6179
Assert.Equal(expectedHeight, control.
Height
);
6294
Assert.Equal(expectedHeight, control.
Height
);
6321
Assert.Equal(expectedHeight, control.
Height
);
6703
Assert.Equal(0, control.
Height
);
6725
Assert.Equal(0, control.
Height
);
6794
Assert.Equal(0, control.
Height
);
6816
Assert.Equal(0, control.
Height
);
6893
Assert.Equal(0, control.
Height
);
6918
Assert.Equal(0, control.
Height
);
7003
Assert.Equal(0, control.
Height
);
7032
Assert.Equal(0, control.
Height
);
7184
Assert.Equal(0, control.
Height
);
7206
Assert.Equal(0, control.
Height
);
7274
Assert.Equal(0, control.
Height
);
7297
Assert.Equal(0, control.
Height
);
7376
Assert.Equal(0, control.
Height
);
7401
Assert.Equal(0, control.
Height
);
7487
Assert.Equal(0, control.
Height
);
7517
Assert.Equal(0, control.
Height
);
11123
Assert.Equal(value.Height, control.
Height
);
11142
Assert.Equal(value.Height, control.
Height
);
11234
Assert.Equal(expectedHeight, control.
Height
);
11253
Assert.Equal(expectedHeight, control.
Height
);
11329
Assert.Equal(value.Height, control.
Height
);
11348
Assert.Equal(value.Height, control.
Height
);
11444
Assert.Equal(value.Height, control.
Height
);
11464
Assert.Equal(value.Height, control.
Height
);
11561
Assert.Equal(expectedHeight, control.
Height
);
11583
Assert.Equal(expectedHeight, control.
Height
);
11703
Assert.Equal(expectedHeight, control.
Height
);
11730
Assert.Equal(expectedHeight, control.
Height
);
12138
Assert.Equal(0, control.
Height
);
12159
Assert.Equal(0, control.
Height
);
12228
Assert.Equal(0, control.
Height
);
12250
Assert.Equal(0, control.
Height
);
12326
Assert.Equal(0, control.
Height
);
12350
Assert.Equal(0, control.
Height
);
12435
Assert.Equal(0, control.
Height
);
12464
Assert.Equal(0, control.
Height
);
13158
Assert.Equal(0, control.
Height
);
13177
Assert.Equal(0, control.
Height
);
13268
Assert.Equal(expectedHeight, control.
Height
);
13287
Assert.Equal(expectedHeight, control.
Height
);
13356
Assert.Equal(0, control.
Height
);
13375
Assert.Equal(0, control.
Height
);
13464
Assert.Equal(0, control.
Height
);
13484
Assert.Equal(0, control.
Height
);
13576
Assert.Equal(0, control.
Height
);
13598
Assert.Equal(0, control.
Height
);
13713
Assert.Equal(0, control.
Height
);
13740
Assert.Equal(0, control.
Height
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (8)
56
Assert.Equal(s_preferredHeight, control.
Height
);
82
Assert.Equal(control.PreferredHeight, control.
Height
);
1220
Assert.Equal(s_preferredHeight, control.
Height
);
1227
Assert.Equal(s_preferredHeight, control.
Height
);
1252
Assert.Equal(s_preferredHeight, control.
Height
);
1259
Assert.Equal(s_preferredHeight, control.
Height
);
1292
Assert.Equal(s_preferredHeight, control.
Height
);
1299
Assert.Equal(s_preferredHeight, control.
Height
);
System\Windows\Forms\DateTimePickerTests.cs (1)
83
Assert.Equal(control.PreferredHeight, control.
Height
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (7)
49
Assert.Equal(control.
Height
, control.Bottom);
50
Assert.Equal(new Rectangle(0, 0, control.Width, control.
Height
), control.Bounds);
78
Assert.Equal(new Rectangle(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.Y, control.Width, control.
Height
), control.DesktopBounds);
99
Assert.True(control.
Height
> 0);
138
Assert.Equal(new Rectangle(-1, -1, control.Width, control.
Height
), control.RestoreBounds);
148
Assert.Equal(new Size(control.Width, control.
Height
), control.Size);
180
Assert.Equal(control.
Height
, createParams.Height);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
82
Assert.Equal(100, control.
Height
);
System\Windows\Forms\DomainUpDownTests.cs (1)
104
_sub.
Height
.Should().Be(_sub.PreferredHeight);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
79
Assert.Equal(100, control.
Height
);
System\Windows\Forms\FormTests.cs (1)
101
Assert.Equal(300, control.
Height
);
System\Windows\Forms\GroupBoxTests.cs (1)
70
Assert.Equal(100, control.
Height
);
System\Windows\Forms\HScrollBarTests.cs (1)
77
Assert.True(control.
Height
> 0);
System\Windows\Forms\LabelTests.cs (1)
70
Assert.Equal(23, control.
Height
);
System\Windows\Forms\ListBoxTests.cs (25)
80
Assert.Equal(96, control.
Height
);
602
Assert.Equal(96, control.
Height
);
608
Assert.Equal(96, control.
Height
);
629
Assert.True(control.
Height
> 0);
638
Assert.True(control.
Height
> 0);
1062
Assert.Equal(96, control.
Height
);
1070
Assert.Equal(96, control.
Height
);
1090
Assert.Equal(96, control.
Height
);
1098
Assert.Equal(96, control.
Height
);
1130
Assert.True(control.
Height
> 0);
1141
Assert.True(control.
Height
> 0);
1179
Assert.True(control.
Height
> 0);
1190
Assert.True(control.
Height
> 0);
1648
Assert.Equal(96, control.
Height
);
1654
Assert.Equal(96, control.
Height
);
1660
Assert.Equal(96, control.
Height
);
1680
Assert.True(control.
Height
> 0);
1689
Assert.True(control.
Height
> 0);
1698
Assert.True(control.
Height
> 0);
1729
Assert.Equal(96, control.
Height
);
1735
Assert.Equal(96, control.
Height
);
1774
Assert.True(control.
Height
> 0);
1783
Assert.True(control.
Height
> 0);
5566
Assert.Equal(96, control.
Height
);
5572
Assert.Equal(96, control.
Height
);
System\Windows\Forms\ListControlTests.cs (1)
76
Assert.Equal(0, control.
Height
);
System\Windows\Forms\ListViewTests.cs (1)
91
Assert.Equal(97, control.
Height
);
System\Windows\Forms\MdiClientTests.cs (11)
55
Assert.Equal(0, control.
Height
);
548
Assert.Equal(value.Height, control.
Height
);
567
Assert.Equal(value.Height, control.
Height
);
650
Assert.Equal(expectedHeight, control.
Height
);
672
Assert.Equal(expectedHeight, control.
Height
);
784
Assert.Equal(0, control.
Height
);
811
Assert.Equal(0, control.
Height
);
936
Assert.Equal(0, control.
Height
);
963
Assert.Equal(0, control.
Height
);
1098
Assert.Equal(expectedHeight, control.
Height
);
1125
Assert.Equal(expectedHeight, control.
Height
);
System\Windows\Forms\MenuStripTests.cs (1)
89
Assert.Equal(24, control.
Height
);
System\Windows\Forms\MonthCalendarTests.cs (2)
87
Assert.True(control.
Height
> 0);
156
Assert.Equal(control.
Height
, createParams.Height);
System\Windows\Forms\PanelTests.cs (1)
79
Assert.Equal(100, control.
Height
);
System\Windows\Forms\ProgressBarTests.cs (1)
67
Assert.Equal(23, control.
Height
);
System\Windows\Forms\PropertyGridTests.cs (1)
108
Assert.Equal(130, control.
Height
);
System\Windows\Forms\RadioButtonTests.cs (1)
77
Assert.Equal(24, control.
Height
);
System\Windows\Forms\RichTextBoxTests.cs (23)
86
Assert.Equal(96, control.
Height
);
177
Assert.Equal(control.
Height
, createParams.Height);
389
Assert.Equal(96, control.
Height
);
398
Assert.Equal(96, control.
Height
);
407
Assert.Equal(96, control.
Height
);
433
Assert.Equal(expectedHeight, control.
Height
);
442
Assert.Equal(expectedHeight, control.
Height
);
451
Assert.Equal(expectedHeight2, control.
Height
);
477
Assert.Equal(96, control.
Height
);
487
Assert.Equal(96, control.
Height
);
497
Assert.Equal(96, control.
Height
);
2069
Assert.Equal(96, control.
Height
);
2077
Assert.Equal(96, control.
Height
);
2085
Assert.Equal(96, control.
Height
);
2107
Assert.Equal(expectedHeight1, control.
Height
);
2115
Assert.Equal(expectedHeight1, control.
Height
);
2123
Assert.Equal(expectedHeight2, control.
Height
);
2146
Assert.Equal(96, control.
Height
);
2156
Assert.Equal(96, control.
Height
);
2166
Assert.Equal(96, control.
Height
);
2210
Assert.Equal(expectedHeight1, control.
Height
);
2220
Assert.Equal(expectedHeight1, control.
Height
);
2230
Assert.Equal(expectedHeight2, control.
Height
);
System\Windows\Forms\ScrollableControlTests.cs (1)
78
Assert.Equal(0, control.
Height
);
System\Windows\Forms\ScrollBarTests.cs (1)
67
Assert.Equal(0, control.
Height
);
System\Windows\Forms\SplitterTests.cs (15)
68
Assert.Equal(3, control.
Height
);
323
Assert.Equal(3, control.
Height
);
329
Assert.Equal(3, control.
Height
);
350
Assert.Equal(3, control.
Height
);
359
Assert.Equal(3, control.
Height
);
409
Assert.Equal(3, control.
Height
);
418
Assert.Equal(3, control.
Height
);
442
Assert.Equal(expectedHeight, control.
Height
);
451
Assert.Equal(expectedHeight, control.
Height
);
474
Assert.Equal(3, control.
Height
);
483
Assert.Equal(3, control.
Height
);
508
Assert.Equal(40, control.
Height
);
517
Assert.Equal(40, control.
Height
);
666
Assert.Equal(3, control.
Height
);
678
Assert.Equal(3, control.
Height
);
System\Windows\Forms\StatusStripTests.cs (1)
89
Assert.Equal(22, control.
Height
);
System\Windows\Forms\TabControlTests.cs (1)
70
Assert.Equal(100, control.
Height
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
85
Assert.Equal(100, control.
Height
);
System\Windows\Forms\TabPageTests.cs (18)
84
Assert.Equal(100, control.
Height
);
193
Assert.Equal(100, control.
Height
);
1910
Assert.Equal(100, control.
Height
);
1932
Assert.Equal(100, control.
Height
);
2000
Assert.Equal(100, control.
Height
);
2023
Assert.Equal(100, control.
Height
);
2101
Assert.Equal(100, control.
Height
);
2126
Assert.Equal(100, control.
Height
);
2225
Assert.Equal(expected.Height, control.
Height
);
2255
Assert.Equal(expected.Height, control.
Height
);
4356
Assert.Equal(height, control.
Height
);
4377
Assert.Equal(height, control.
Height
);
4493
Assert.Equal(height, control.
Height
);
4515
Assert.Equal(height, control.
Height
);
4648
Assert.Equal(expectedHeight, control.
Height
);
4672
Assert.Equal(expectedHeight, control.
Height
);
4827
Assert.Equal(expected.Height, control.
Height
);
4857
Assert.Equal(expected.Height, control.
Height
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
81
Assert.Equal(100, control.
Height
);
951
Assert.Equal(100, control.
Height
);
973
Assert.Equal(100, control.
Height
);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
89
Assert.Equal(c.
Height
, item.Height);
System\Windows\Forms\ToolStripDropDownTests.cs (4)
94
Assert.Equal(25, control.
Height
);
1977
Assert.Equal(25, control.
Height
);
1999
Assert.Equal(25, control.
Height
);
5012
expectedLocation.Offset(0, -toolStripDropDown.
Height
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
81
Assert.Equal(0, control.
Height
);
System\Windows\Forms\ToolStripTests.cs (2)
107
Assert.Equal(25, control.
Height
);
261
Assert.Equal(25, control.
Height
);
System\Windows\Forms\TreeViewTests.cs (1)
72
Assert.Equal(97, control.
Height
);
System\Windows\Forms\UpDownBaseTests.cs (8)
91
Assert.Equal(control.PreferredHeight, control.
Height
);
191
Assert.Equal(control.
Height
, createParams.Height);
1803
Assert.Equal(preferredHeight, control.
Height
);
1810
Assert.Equal(preferredHeight, control.
Height
);
2531
Assert.Equal(preferredHeight, control.
Height
);
2536
Assert.Equal(preferredHeight, control.
Height
);
2774
Assert.Equal(preferredHeight, control.
Height
);
2806
Assert.Equal(preferredHeight, control.
Height
);
System\Windows\Forms\UserControlTests.cs (1)
85
Assert.Equal(150, control.
Height
);
System\Windows\Forms\VScrollBarTests.cs (1)
76
Assert.True(control.
Height
> 0);
System\Windows\Forms\WebBrowserTests.cs (1)
66
Assert.Equal(250, control.
Height
);
TextBoxBaseTests.cs (38)
107
Assert.Equal(control.
Height
, createParams.Height);
217
Assert.Equal(s_preferredHeight, control.
Height
);
226
Assert.Equal(s_preferredHeight, control.
Height
);
235
Assert.Equal(s_preferredHeight, control.
Height
);
255
Assert.Equal(s_preferredHeight, control.
Height
);
265
Assert.Equal(s_preferredHeight, control.
Height
);
275
Assert.Equal(s_preferredHeight, control.
Height
);
302
Assert.Equal(s_preferredHeight, control.
Height
);
312
Assert.Equal(s_preferredHeight, control.
Height
);
322
Assert.Equal(s_preferredHeight, control.
Height
);
1949
Assert.Equal(s_preferredHeight, control.
Height
);
1957
Assert.Equal(s_preferredHeight, control.
Height
);
1965
Assert.Equal(s_preferredHeight, control.
Height
);
1981
Assert.Equal(s_preferredHeight, control.
Height
);
1989
Assert.Equal(s_preferredHeight, control.
Height
);
1997
Assert.Equal(s_preferredHeight, control.
Height
);
2029
Assert.Equal(s_preferredHeight, control.
Height
);
2039
Assert.Equal(s_preferredHeight, control.
Height
);
2049
Assert.Equal(s_preferredHeight, control.
Height
);
2081
Assert.Equal(s_preferredHeight, control.
Height
);
2091
Assert.Equal(s_preferredHeight, control.
Height
);
2101
Assert.Equal(s_preferredHeight, control.
Height
);
5358
Assert.Equal(s_preferredHeight, control.
Height
);
5364
Assert.Equal(s_preferredHeight, control.
Height
);
5384
Assert.Equal(s_preferredHeight, control.
Height
);
5391
Assert.Equal(s_preferredHeight, control.
Height
);
5413
Assert.Equal(s_preferredHeight, control.
Height
);
5420
Assert.Equal(s_preferredHeight, control.
Height
);
5489
Assert.Equal(s_preferredHeight, control.
Height
);
5502
Assert.Equal(s_preferredHeight, control.
Height
);
5721
Assert.Equal(s_preferredHeight, control.
Height
);
5727
Assert.Equal(s_preferredHeight, control.
Height
);
6547
Assert.Equal(s_preferredHeight, control.
Height
);
6568
Assert.Equal(s_preferredHeight, control.
Height
);
6681
Assert.Equal(height, control.
Height
);
6702
Assert.Equal(height, control.
Height
);
6797
Assert.Equal(height, control.
Height
);
6818
Assert.Equal(height, control.
Height
);
TextBoxTests.cs (7)
76
Assert.Equal(control.PreferredHeight, control.
Height
);
549
Assert.Equal(s_preferredHeight, control.
Height
);
556
Assert.Equal(s_preferredHeight, control.
Height
);
578
Assert.Equal(s_preferredHeight, control.
Height
);
585
Assert.Equal(s_preferredHeight, control.
Height
);
654
Assert.Equal(s_preferredHeight, control.
Height
);
667
Assert.Equal(s_preferredHeight, control.
Height
);
TrackBarTests.cs (3)
69
Assert.Equal(s_dimension, control.
Height
);
3007
Assert.Equal(expectedHeight, control.
Height
);
3028
Assert.Equal(expectedHeight, control.
Height
);
WebBrowserBaseTests.cs (4)
86
Assert.Equal(height, control.
Height
);
105
Assert.Equal(height, control.
Height
);
202
Assert.Equal(expectedHeight, control.
Height
);
224
Assert.Equal(expectedHeight, control.
Height
);
System.Windows.Forms.UI.IntegrationTests (6)
Dpi\DpiMessageHelper.cs (1)
26
(int)Math.Round(control.
Height
* factor));
FormTests.cs (4)
73
Assert.True(form.
Height
>= screenWorkingArea.Height);
74
Assert.True(form.
Height
<= screenWorkingArea.Height + (borderSize * 2));
134
Assert.True(form.
Height
>= screenWorkingArea.Height);
135
Assert.True(form.
Height
<= screenWorkingArea.Height + (borderSize * 2));
ListBoxItemAccessibleObjestTests.cs (1)
31
boundsAfterHandleCreation.Height.Should().BeLessOrEqualTo(listBox.
Height
);
WindowsFormsIntegration (4)
System\Windows\Integration\ElementHost.cs (1)
632
SafeNativeMethods.SetWindowPos(_hwndSource.Handle, NativeMethods.HWND_TOP, 0, 0, this.Width, this.
Height
, 0);
System\Windows\Integration\HostUtils.cs (3)
297
int height = control.Width <= 0 ? 1 : control.
Height
;
333
drawingContext.DrawRectangle(brush, null, new Rect(0, 0, adapter.Width, adapter.
Height
));
336
RenderTargetBitmap bmp = GetRenderTargetBitmapForVisual(adapter.Width, adapter.
Height
, drawingVisual);
WinFormsControlsTest (2)
ListBoxes.Designer.cs (1)
220
this.propertyGrid.Size = new System.Drawing.Size(this.Width, this.
Height
);
TrackBars.cs (1)
31
lblTrackBarSize.Text = $"Trackbar height: {trackBar1.
Height
}";