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)
481
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)
10171
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)
388
Height
= _requestedDim;
706
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)
511
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)
14
Height
= 87
44
Height
= 87
System\Windows\Forms\ControlTests.Methods.cs (5)
1887
Height
= 20,
1901
Height
= 20,
1938
Height
= 20
1952
Height
= 20
1966
Height
= height
System\Windows\Forms\ControlTests.Properties.cs (12)
5727
control.
Height
= value;
5746
control.
Height
= value;
5837
control.
Height
= value;
5856
control.
Height
= value;
5925
control.
Height
= value;
5944
control.
Height
= value;
6033
control.
Height
= value;
6053
control.
Height
= value;
6145
control.
Height
= value;
6167
control.
Height
= value;
6282
control.
Height
= value;
6309
control.
Height
= value;
System\Windows\Forms\ScrollableControlTests.cs (1)
231
Height
= childHeight
System\Windows\Forms\SplitterTests.cs (9)
431
Height
= 40
497
Height
= 40
1143
Height
= 100
1198
Height
= 100
1243
Height
= 100
1315
Height
= 100
1362
Height
= 100
2010
Height
= 100
2111
Height
= 100
System\Windows\Forms\TreeViewTests.cs (1)
7566
treeView.
Height
= 100;
TextBoxBaseTests.cs (1)
3942
Height
= 0
WebBrowserBaseTests.cs (5)
670
Height
= 20,
684
Height
= 20,
721
Height
= 20
735
Height
= 20
749
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;
573 references to Height
DesignSurface (1)
MainForm.cs (1)
352
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)
4917
int height = Math.Min(
Height
, targetBounds.Height);
8227
Rectangle shift = new(-Left, -Top, parent.Width, parent.
Height
);
8730
viewportOrg.Y +
Height
);
10049
/// <param name="height">The new <see cref="
Height
" /> property value of the control.</param>
10794
bool newSize = Width != width ||
Height
!= height || _clientWidth != clientWidth || _clientHeight != clientHeight;
11113
client = new Point(Width / 2,
Height
/ 2);
11903
if ((wp->flags & SET_WINDOW_POS_FLAGS.SWP_NOSIZE) == 0 && (wp->cx != Width || wp->cy !=
Height
))
12636
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)
4545
int oldThumbHeight = Math.Max(((_vertScrollBar.
Height
- 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange) / _vertScrollBar.Maximum, 8);
4556
(_vertScrollBar.
Height
- 2 * SystemInformation.VerticalScrollBarArrowHeight) * _vertScrollBar.LargeChange / _vertScrollBar.Maximum,
9008
minimumHeight += _horizScrollBar.
Height
;
10311
_horizScrollBar.
Height
);
10328
_horizScrollBar.
Height
);
18825
pt.Y +=
Height
;
29980
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)
776
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)
1386
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)
35
Assert.Equal(new Rectangle(0, 0, control.Width, control.
Height
), control.Bounds);
43
Assert.Equal(new Rectangle(0, 0, control.Width, control.
Height
), control.ClientRectangle);
44
Assert.Equal(new Size(control.Width, control.
Height
), control.ClientSize);
65
Assert.Equal(new Rectangle(0, 0, control.Width, control.
Height
), control.DisplayRectangle);
83
Assert.True(control.
Height
> 0);
116
Assert.Equal(new Size(control.Width, control.
Height
), control.Size);
141
Assert.Equal(control.
Height
, createParams.Height);
System.Windows.Forms.Tests (370)
System\Windows\Forms\AxHostTests.cs (2)
80
Assert.Equal(23, control.
Height
);
174
Assert.Equal(23, control.
Height
);
System\Windows\Forms\ButtonBaseTests.cs (1)
72
Assert.Equal(23, control.
Height
);
System\Windows\Forms\ButtonRenderingTests.cs (1)
242
new Rectangle(0, 0, button.Width - 1, button.
Height
- 1),
System\Windows\Forms\ButtonTests.cs (1)
75
Assert.Equal(23, control.
Height
);
System\Windows\Forms\CheckBoxTests.cs (1)
76
Assert.Equal(24, control.
Height
);
System\Windows\Forms\ComboBoxTests.cs (4)
86
Assert.Equal(control.PreferredHeight, control.
Height
);
2728
comboBox.
Height
.Should().Be(23);
2732
comboBox.
Height
.Should().Be(23);
2738
comboBox.
Height
.Should().Be(150);
System\Windows\Forms\ContainerControlTests.cs (1)
83
Assert.Equal(0, control.
Height
);
System\Windows\Forms\ControlTests.cs (5)
64
Assert.Equal(0, control.
Height
);
153
Assert.Equal(0, control.
Height
);
249
Assert.Equal(height, control.
Height
);
345
Assert.Equal(0, control.
Height
);
441
Assert.Equal(height, control.
Height
);
System\Windows\Forms\ControlTests.Methods.cs (74)
7434
Assert.Equal(height, control.
Height
);
7453
Assert.Equal(height, control.
Height
);
7545
Assert.Equal(expectedHeight, control.
Height
);
7564
Assert.Equal(expectedHeight, control.
Height
);
7643
Assert.Equal(height, control.
Height
);
7662
Assert.Equal(height, control.
Height
);
7761
Assert.Equal(height, control.
Height
);
7781
Assert.Equal(height, control.
Height
);
7884
Assert.Equal(expectedHeight, control.
Height
);
7906
Assert.Equal(expectedHeight, control.
Height
);
8032
Assert.Equal(expectedHeight, control.
Height
);
8059
Assert.Equal(expectedHeight, control.
Height
);
8221
Assert.Equal(expectedHeight, control.
Height
);
8240
Assert.Equal(expectedHeight, control.
Height
);
8332
Assert.Equal(expectedHeight, control.
Height
);
8351
Assert.Equal(expectedHeight, control.
Height
);
8430
Assert.Equal(expectedHeight, control.
Height
);
8449
Assert.Equal(expectedHeight, control.
Height
);
8618
Assert.Equal(expectedHeight, control.
Height
);
8638
Assert.Equal(expectedHeight, control.
Height
);
8741
Assert.Equal(expectedHeight, control.
Height
);
8763
Assert.Equal(expectedHeight, control.
Height
);
8889
Assert.Equal(expectedHeight, control.
Height
);
8916
Assert.Equal(expectedHeight, control.
Height
);
9035
Assert.Equal(height, control.
Height
);
9056
Assert.Equal(height, control.
Height
);
9177
Assert.Equal(expectedHeight, control.
Height
);
9198
Assert.Equal(expectedHeight, control.
Height
);
9306
Assert.Equal(height, control.
Height
);
9327
Assert.Equal(height, control.
Height
);
9443
Assert.Equal(height, control.
Height
);
9465
Assert.Equal(height, control.
Height
);
9598
Assert.Equal(expectedHeight, control.
Height
);
9622
Assert.Equal(expectedHeight, control.
Height
);
9756
Assert.Equal(expectedHeight, control.
Height
);
9785
Assert.Equal(expectedHeight, control.
Height
);
9867
Assert.Equal(expectedSize.Height, control.
Height
);
9883
Assert.Equal(expectedSize.Height, control.
Height
);
9915
Assert.Equal(expectedSize.Height, control.
Height
);
9934
Assert.Equal(expectedSize.Height, control.
Height
);
10390
Assert.Equal(0, control.
Height
);
10409
Assert.Equal(0, control.
Height
);
10457
Assert.True(control.
Height
>= 0);
10490
Assert.True(control.
Height
>= 0);
10564
Assert.Equal(0, control.
Height
);
10583
Assert.Equal(0, control.
Height
);
10656
Assert.Equal(0, control.
Height
);
10675
Assert.Equal(0, control.
Height
);
10747
Assert.Equal(0, control.
Height
);
10769
Assert.Equal(0, control.
Height
);
10814
Assert.Equal(4, control.
Height
);
10836
Assert.Equal(4, control.
Height
);
10892
Assert.Equal(4, control.
Height
);
10918
Assert.Equal(4, control.
Height
);
11004
Assert.Equal(height, control.
Height
);
11023
Assert.Equal(height, control.
Height
);
11115
Assert.Equal(height, control.
Height
);
11134
Assert.Equal(height, control.
Height
);
11213
Assert.Equal(height, control.
Height
);
11232
Assert.Equal(height, control.
Height
);
11322
Assert.Equal(height, control.
Height
);
11342
Assert.Equal(height, control.
Height
);
11445
Assert.Equal(height, control.
Height
);
11467
Assert.Equal(height, control.
Height
);
11574
Assert.Equal(height, control.
Height
);
11601
Assert.Equal(height, control.
Height
);
11699
Assert.Equal(height, control.
Height
);
11718
Assert.Equal(height, control.
Height
);
11808
Assert.Equal(height, control.
Height
);
11828
Assert.Equal(height, control.
Height
);
11943
Assert.Equal(height, control.
Height
);
11965
Assert.Equal(height, control.
Height
);
12072
Assert.Equal(height, control.
Height
);
12099
Assert.Equal(height, control.
Height
);
System\Windows\Forms\ControlTests.Properties.cs (76)
2487
Assert.Equal(height, control.
Height
);
2506
Assert.Equal(height, control.
Height
);
2576
Assert.Equal(expectedHeight, control.
Height
);
2595
Assert.Equal(expectedHeight, control.
Height
);
2661
Assert.Equal(height, control.
Height
);
2680
Assert.Equal(height, control.
Height
);
2766
Assert.Equal(height, control.
Height
);
2786
Assert.Equal(height, control.
Height
);
2866
Assert.Equal(expectedHeight, control.
Height
);
2888
Assert.Equal(expectedHeight, control.
Height
);
2991
Assert.Equal(expectedHeight, control.
Height
);
3018
Assert.Equal(expectedHeight, control.
Height
);
3390
Assert.Equal(expectedSize.Height, control.
Height
);
3406
Assert.Equal(expectedSize.Height, control.
Height
);
3453
Assert.Equal(expectedSize.Height, control.
Height
);
3472
Assert.Equal(expectedSize.Height, control.
Height
);
5737
Assert.Equal(value, control.
Height
);
5756
Assert.Equal(value, control.
Height
);
5847
Assert.Equal(expectedHeight, control.
Height
);
5866
Assert.Equal(expectedHeight, control.
Height
);
5935
Assert.Equal(value, control.
Height
);
5954
Assert.Equal(value, control.
Height
);
6043
Assert.Equal(value, control.
Height
);
6063
Assert.Equal(value, control.
Height
);
6155
Assert.Equal(expectedHeight, control.
Height
);
6177
Assert.Equal(expectedHeight, control.
Height
);
6292
Assert.Equal(expectedHeight, control.
Height
);
6319
Assert.Equal(expectedHeight, control.
Height
);
6701
Assert.Equal(0, control.
Height
);
6723
Assert.Equal(0, control.
Height
);
6792
Assert.Equal(0, control.
Height
);
6814
Assert.Equal(0, control.
Height
);
6891
Assert.Equal(0, control.
Height
);
6916
Assert.Equal(0, control.
Height
);
7001
Assert.Equal(0, control.
Height
);
7030
Assert.Equal(0, control.
Height
);
7182
Assert.Equal(0, control.
Height
);
7204
Assert.Equal(0, control.
Height
);
7272
Assert.Equal(0, control.
Height
);
7295
Assert.Equal(0, control.
Height
);
7374
Assert.Equal(0, control.
Height
);
7399
Assert.Equal(0, control.
Height
);
7485
Assert.Equal(0, control.
Height
);
7515
Assert.Equal(0, control.
Height
);
11121
Assert.Equal(value.Height, control.
Height
);
11140
Assert.Equal(value.Height, control.
Height
);
11232
Assert.Equal(expectedHeight, control.
Height
);
11251
Assert.Equal(expectedHeight, control.
Height
);
11327
Assert.Equal(value.Height, control.
Height
);
11346
Assert.Equal(value.Height, control.
Height
);
11442
Assert.Equal(value.Height, control.
Height
);
11462
Assert.Equal(value.Height, control.
Height
);
11559
Assert.Equal(expectedHeight, control.
Height
);
11581
Assert.Equal(expectedHeight, control.
Height
);
11701
Assert.Equal(expectedHeight, control.
Height
);
11728
Assert.Equal(expectedHeight, control.
Height
);
12136
Assert.Equal(0, control.
Height
);
12157
Assert.Equal(0, control.
Height
);
12226
Assert.Equal(0, control.
Height
);
12248
Assert.Equal(0, control.
Height
);
12324
Assert.Equal(0, control.
Height
);
12348
Assert.Equal(0, control.
Height
);
12433
Assert.Equal(0, control.
Height
);
12462
Assert.Equal(0, control.
Height
);
13156
Assert.Equal(0, control.
Height
);
13175
Assert.Equal(0, control.
Height
);
13266
Assert.Equal(expectedHeight, control.
Height
);
13285
Assert.Equal(expectedHeight, control.
Height
);
13354
Assert.Equal(0, control.
Height
);
13373
Assert.Equal(0, control.
Height
);
13462
Assert.Equal(0, control.
Height
);
13482
Assert.Equal(0, control.
Height
);
13574
Assert.Equal(0, control.
Height
);
13596
Assert.Equal(0, control.
Height
);
13711
Assert.Equal(0, control.
Height
);
13738
Assert.Equal(0, control.
Height
);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (8)
54
Assert.Equal(s_preferredHeight, control.
Height
);
80
Assert.Equal(control.PreferredHeight, control.
Height
);
1218
Assert.Equal(s_preferredHeight, control.
Height
);
1225
Assert.Equal(s_preferredHeight, control.
Height
);
1250
Assert.Equal(s_preferredHeight, control.
Height
);
1257
Assert.Equal(s_preferredHeight, control.
Height
);
1290
Assert.Equal(s_preferredHeight, control.
Height
);
1297
Assert.Equal(s_preferredHeight, control.
Height
);
System\Windows\Forms\DateTimePickerTests.cs (1)
81
Assert.Equal(control.PreferredHeight, control.
Height
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (7)
47
Assert.Equal(control.
Height
, control.Bottom);
48
Assert.Equal(new Rectangle(0, 0, control.Width, control.
Height
), control.Bounds);
76
Assert.Equal(new Rectangle(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.Y, control.Width, control.
Height
), control.DesktopBounds);
97
Assert.True(control.
Height
> 0);
136
Assert.Equal(new Rectangle(-1, -1, control.Width, control.
Height
), control.RestoreBounds);
146
Assert.Equal(new Size(control.Width, control.
Height
), control.Size);
178
Assert.Equal(control.
Height
, createParams.Height);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
80
Assert.Equal(100, control.
Height
);
System\Windows\Forms\DomainUpDownTests.cs (1)
102
_sub.
Height
.Should().Be(_sub.PreferredHeight);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
77
Assert.Equal(100, control.
Height
);
System\Windows\Forms\FormTests.cs (1)
99
Assert.Equal(300, control.
Height
);
System\Windows\Forms\GroupBoxTests.cs (1)
68
Assert.Equal(100, control.
Height
);
System\Windows\Forms\HScrollBarTests.cs (1)
75
Assert.True(control.
Height
> 0);
System\Windows\Forms\LabelTests.cs (1)
68
Assert.Equal(23, control.
Height
);
System\Windows\Forms\ListBoxTests.cs (25)
78
Assert.Equal(96, control.
Height
);
600
Assert.Equal(96, control.
Height
);
606
Assert.Equal(96, control.
Height
);
627
Assert.True(control.
Height
> 0);
636
Assert.True(control.
Height
> 0);
1060
Assert.Equal(96, control.
Height
);
1068
Assert.Equal(96, control.
Height
);
1088
Assert.Equal(96, control.
Height
);
1096
Assert.Equal(96, control.
Height
);
1128
Assert.True(control.
Height
> 0);
1139
Assert.True(control.
Height
> 0);
1177
Assert.True(control.
Height
> 0);
1188
Assert.True(control.
Height
> 0);
1646
Assert.Equal(96, control.
Height
);
1652
Assert.Equal(96, control.
Height
);
1658
Assert.Equal(96, control.
Height
);
1678
Assert.True(control.
Height
> 0);
1687
Assert.True(control.
Height
> 0);
1696
Assert.True(control.
Height
> 0);
1727
Assert.Equal(96, control.
Height
);
1733
Assert.Equal(96, control.
Height
);
1772
Assert.True(control.
Height
> 0);
1781
Assert.True(control.
Height
> 0);
5564
Assert.Equal(96, control.
Height
);
5570
Assert.Equal(96, control.
Height
);
System\Windows\Forms\ListControlTests.cs (1)
74
Assert.Equal(0, control.
Height
);
System\Windows\Forms\ListViewTests.cs (1)
89
Assert.Equal(97, control.
Height
);
System\Windows\Forms\MdiClientTests.cs (11)
53
Assert.Equal(0, control.
Height
);
546
Assert.Equal(value.Height, control.
Height
);
565
Assert.Equal(value.Height, control.
Height
);
648
Assert.Equal(expectedHeight, control.
Height
);
670
Assert.Equal(expectedHeight, control.
Height
);
782
Assert.Equal(0, control.
Height
);
809
Assert.Equal(0, control.
Height
);
934
Assert.Equal(0, control.
Height
);
961
Assert.Equal(0, control.
Height
);
1096
Assert.Equal(expectedHeight, control.
Height
);
1123
Assert.Equal(expectedHeight, control.
Height
);
System\Windows\Forms\MenuStripTests.cs (1)
87
Assert.Equal(24, control.
Height
);
System\Windows\Forms\MonthCalendarTests.cs (2)
85
Assert.True(control.
Height
> 0);
154
Assert.Equal(control.
Height
, createParams.Height);
System\Windows\Forms\PanelTests.cs (1)
77
Assert.Equal(100, control.
Height
);
System\Windows\Forms\ProgressBarTests.cs (1)
65
Assert.Equal(23, control.
Height
);
System\Windows\Forms\PropertyGridTests.cs (1)
106
Assert.Equal(130, control.
Height
);
System\Windows\Forms\RadioButtonTests.cs (1)
75
Assert.Equal(24, control.
Height
);
System\Windows\Forms\RichTextBoxTests.cs (23)
84
Assert.Equal(96, control.
Height
);
175
Assert.Equal(control.
Height
, createParams.Height);
387
Assert.Equal(96, control.
Height
);
396
Assert.Equal(96, control.
Height
);
405
Assert.Equal(96, control.
Height
);
431
Assert.Equal(expectedHeight, control.
Height
);
440
Assert.Equal(expectedHeight, control.
Height
);
449
Assert.Equal(expectedHeight2, control.
Height
);
475
Assert.Equal(96, control.
Height
);
485
Assert.Equal(96, control.
Height
);
495
Assert.Equal(96, control.
Height
);
2067
Assert.Equal(96, control.
Height
);
2075
Assert.Equal(96, control.
Height
);
2083
Assert.Equal(96, control.
Height
);
2105
Assert.Equal(expectedHeight1, control.
Height
);
2113
Assert.Equal(expectedHeight1, control.
Height
);
2121
Assert.Equal(expectedHeight2, control.
Height
);
2144
Assert.Equal(96, control.
Height
);
2154
Assert.Equal(96, control.
Height
);
2164
Assert.Equal(96, control.
Height
);
2208
Assert.Equal(expectedHeight1, control.
Height
);
2218
Assert.Equal(expectedHeight1, control.
Height
);
2228
Assert.Equal(expectedHeight2, control.
Height
);
System\Windows\Forms\ScrollableControlTests.cs (1)
76
Assert.Equal(0, control.
Height
);
System\Windows\Forms\ScrollBarTests.cs (1)
65
Assert.Equal(0, control.
Height
);
System\Windows\Forms\SplitterTests.cs (15)
66
Assert.Equal(3, control.
Height
);
321
Assert.Equal(3, control.
Height
);
327
Assert.Equal(3, control.
Height
);
348
Assert.Equal(3, control.
Height
);
357
Assert.Equal(3, control.
Height
);
407
Assert.Equal(3, control.
Height
);
416
Assert.Equal(3, control.
Height
);
440
Assert.Equal(expectedHeight, control.
Height
);
449
Assert.Equal(expectedHeight, control.
Height
);
472
Assert.Equal(3, control.
Height
);
481
Assert.Equal(3, control.
Height
);
506
Assert.Equal(40, control.
Height
);
515
Assert.Equal(40, control.
Height
);
664
Assert.Equal(3, control.
Height
);
676
Assert.Equal(3, control.
Height
);
System\Windows\Forms\StatusStripTests.cs (1)
87
Assert.Equal(22, control.
Height
);
System\Windows\Forms\TabControlTests.cs (1)
68
Assert.Equal(100, control.
Height
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
83
Assert.Equal(100, control.
Height
);
System\Windows\Forms\TabPageTests.cs (18)
82
Assert.Equal(100, control.
Height
);
191
Assert.Equal(100, control.
Height
);
1908
Assert.Equal(100, control.
Height
);
1930
Assert.Equal(100, control.
Height
);
1998
Assert.Equal(100, control.
Height
);
2021
Assert.Equal(100, control.
Height
);
2099
Assert.Equal(100, control.
Height
);
2124
Assert.Equal(100, control.
Height
);
2223
Assert.Equal(expected.Height, control.
Height
);
2253
Assert.Equal(expected.Height, control.
Height
);
4354
Assert.Equal(height, control.
Height
);
4375
Assert.Equal(height, control.
Height
);
4491
Assert.Equal(height, control.
Height
);
4513
Assert.Equal(height, control.
Height
);
4646
Assert.Equal(expectedHeight, control.
Height
);
4670
Assert.Equal(expectedHeight, control.
Height
);
4825
Assert.Equal(expected.Height, control.
Height
);
4855
Assert.Equal(expected.Height, control.
Height
);
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
79
Assert.Equal(100, control.
Height
);
949
Assert.Equal(100, control.
Height
);
971
Assert.Equal(100, control.
Height
);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
87
Assert.Equal(c.
Height
, item.Height);
System\Windows\Forms\ToolStripDropDownTests.cs (4)
92
Assert.Equal(25, control.
Height
);
1975
Assert.Equal(25, control.
Height
);
1997
Assert.Equal(25, control.
Height
);
5010
expectedLocation.Offset(0, -toolStripDropDown.
Height
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
79
Assert.Equal(0, control.
Height
);
System\Windows\Forms\ToolStripTests.cs (2)
105
Assert.Equal(25, control.
Height
);
259
Assert.Equal(25, control.
Height
);
System\Windows\Forms\TreeViewTests.cs (1)
70
Assert.Equal(97, control.
Height
);
System\Windows\Forms\UpDownBaseTests.cs (8)
89
Assert.Equal(control.PreferredHeight, control.
Height
);
189
Assert.Equal(control.
Height
, createParams.Height);
1801
Assert.Equal(preferredHeight, control.
Height
);
1808
Assert.Equal(preferredHeight, control.
Height
);
2529
Assert.Equal(preferredHeight, control.
Height
);
2534
Assert.Equal(preferredHeight, control.
Height
);
2772
Assert.Equal(preferredHeight, control.
Height
);
2804
Assert.Equal(preferredHeight, control.
Height
);
System\Windows\Forms\UserControlTests.cs (1)
83
Assert.Equal(150, control.
Height
);
System\Windows\Forms\VScrollBarTests.cs (1)
74
Assert.True(control.
Height
> 0);
System\Windows\Forms\WebBrowserTests.cs (1)
64
Assert.Equal(250, control.
Height
);
TextBoxBaseTests.cs (38)
105
Assert.Equal(control.
Height
, createParams.Height);
215
Assert.Equal(s_preferredHeight, control.
Height
);
224
Assert.Equal(s_preferredHeight, control.
Height
);
233
Assert.Equal(s_preferredHeight, control.
Height
);
253
Assert.Equal(s_preferredHeight, control.
Height
);
263
Assert.Equal(s_preferredHeight, control.
Height
);
273
Assert.Equal(s_preferredHeight, control.
Height
);
300
Assert.Equal(s_preferredHeight, control.
Height
);
310
Assert.Equal(s_preferredHeight, control.
Height
);
320
Assert.Equal(s_preferredHeight, control.
Height
);
1947
Assert.Equal(s_preferredHeight, control.
Height
);
1955
Assert.Equal(s_preferredHeight, control.
Height
);
1963
Assert.Equal(s_preferredHeight, control.
Height
);
1979
Assert.Equal(s_preferredHeight, control.
Height
);
1987
Assert.Equal(s_preferredHeight, control.
Height
);
1995
Assert.Equal(s_preferredHeight, control.
Height
);
2027
Assert.Equal(s_preferredHeight, control.
Height
);
2037
Assert.Equal(s_preferredHeight, control.
Height
);
2047
Assert.Equal(s_preferredHeight, control.
Height
);
2079
Assert.Equal(s_preferredHeight, control.
Height
);
2089
Assert.Equal(s_preferredHeight, control.
Height
);
2099
Assert.Equal(s_preferredHeight, control.
Height
);
5356
Assert.Equal(s_preferredHeight, control.
Height
);
5362
Assert.Equal(s_preferredHeight, control.
Height
);
5382
Assert.Equal(s_preferredHeight, control.
Height
);
5389
Assert.Equal(s_preferredHeight, control.
Height
);
5411
Assert.Equal(s_preferredHeight, control.
Height
);
5418
Assert.Equal(s_preferredHeight, control.
Height
);
5487
Assert.Equal(s_preferredHeight, control.
Height
);
5500
Assert.Equal(s_preferredHeight, control.
Height
);
5719
Assert.Equal(s_preferredHeight, control.
Height
);
5725
Assert.Equal(s_preferredHeight, control.
Height
);
6545
Assert.Equal(s_preferredHeight, control.
Height
);
6566
Assert.Equal(s_preferredHeight, control.
Height
);
6679
Assert.Equal(height, control.
Height
);
6700
Assert.Equal(height, control.
Height
);
6795
Assert.Equal(height, control.
Height
);
6816
Assert.Equal(height, control.
Height
);
TextBoxTests.cs (7)
74
Assert.Equal(control.PreferredHeight, control.
Height
);
547
Assert.Equal(s_preferredHeight, control.
Height
);
554
Assert.Equal(s_preferredHeight, control.
Height
);
576
Assert.Equal(s_preferredHeight, control.
Height
);
583
Assert.Equal(s_preferredHeight, control.
Height
);
652
Assert.Equal(s_preferredHeight, control.
Height
);
665
Assert.Equal(s_preferredHeight, control.
Height
);
TrackBarTests.cs (3)
67
Assert.Equal(s_dimension, control.
Height
);
3005
Assert.Equal(expectedHeight, control.
Height
);
3026
Assert.Equal(expectedHeight, control.
Height
);
WebBrowserBaseTests.cs (4)
84
Assert.Equal(height, control.
Height
);
103
Assert.Equal(height, control.
Height
);
200
Assert.Equal(expectedHeight, control.
Height
);
222
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 (1)
TrackBars.cs (1)
31
lblTrackBarSize.Text = $"Trackbar height: {trackBar1.
Height
}";