278 writes to Height
System.Drawing.Primitives (3)
System\Drawing\Rectangle.cs (3)
78
Height
= value.Height;
252
Height
+= 2 * height;
281
Height
= result.Height;
System.Windows.Forms (219)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1416
b.
Height
= p.Height;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1705
bounds.
Height
= adjusted.Height;
System\Windows\Forms\Control.cs (1)
8163
rectangle.
Height
--;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
397
imageBounds.
Height
++;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (11)
296
layout.Focus.
Height
--;
403
layout.CheckArea.
Height
= field.Height;
415
layout.CheckArea.
Height
= field.Height;
424
layout.CheckArea.
Height
= checkSizeFull;
427
layout.Field.
Height
-= checkSizeFull;
435
layout.CheckArea.
Height
= checkSizeFull;
437
layout.Field.
Height
-= checkSizeFull;
446
layout.CheckBounds.
Height
-= CheckPaddingSize;
582
layout.TextBounds.
Height
= textBottom - layout.TextBounds.Y;
607
layout.ImageBounds.
Height
= Math.Max(
656
layout.TextBounds.
Height
= bottom - layout.TextBounds.Y;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (6)
44
bounds.
Height
--;
56
bounds.
Height
--;
65
bounds.
Height
++;
75
bounds.
Height
++;
176
fullSize.
Height
++;
181
fullSize.
Height
++;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (2)
46
bounds.
Height
--;
86
bounds.
Height
--;
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
2125
rectDisplay.
Height
-= _horizScrollBar.Height;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (39)
2778
clip.
Height
= _layout.Data.Y + _layout.Data.Height - topEdge - 1;
4377
inside.
Height
= 0;
4391
colHeaders.
Height
= Math.Min(_columnHeadersHeight, colHeaders.Height);
4393
insideLeft.
Height
-= colHeaders.Height;
4469
insideLeft.
Height
--;
5497
rectScrollingArea.
Height
-= emptyBackgroundHeight;
5519
rectScrollingArea.
Height
-= frozenVisibleRowsHeight;
6838
rect.
Height
++;
7078
columnRect.
Height
+= height;
8313
columnRect.
Height
+= _layout.ColumnHeaders.Height;
10180
_layout.Data.
Height
-= horizScrollBarHeight;
10203
_layout.RowHeaders.
Height
-= horizScrollBarHeight;
10210
_layout.Data.
Height
= oldDataHeight;
10270
_layout.Data.
Height
-= horizScrollBarHeight;
14501
rightArea.
Height
++;
16770
gridRect.
Height
++;
16814
focusRect.
Height
-= change;
16821
focusRect.
Height
+= change;
16841
edge.
Height
= 1;
19220
rcBelowRows.
Height
-= _layout.ColumnHeaders.Height;
19225
rcBelowRows.
Height
--;
19229
rcBelowRows.
Height
-= visibleRowsHeight;
19271
rcNextRows.
Height
= gridBounds.Height - rcBelowRows.Height;
19304
edge.
Height
= bounds.Height;
19348
bandBounds.
Height
= cellBounds.
Height
= _columnHeadersHeight;
19532
rc.
Height
-= columnHeadersHeight;
19591
rowBounds.
Height
= Rows.SharedRow(indexTmp).GetHeight(indexTmp);
19594
rowBounds.
Height
++;
19647
rowBounds.
Height
= Rows.SharedRow(indexTmp).GetHeight(indexTmp);
19650
rowBounds.
Height
++;
19690
cellBounds.
Height
= _columnHeadersHeight;
19891
cellBounds.
Height
++;
19892
cellClip.
Height
++;
26347
rowsRect.
Height
--;
26359
rowsRect.
Height
-= frozenRowsThickness;
26383
rowsRect.
Height
= 1;
29033
bottomArea.
Height
-= bottomArea.Y - topEdge;
29101
bottomArea.
Height
-= bottomArea.Y - topEdge;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (5)
420
s_rectThemeMargins.
Height
= DATAGRIDVIEWBUTTONCELL_themeMargin - rectContent.Bottom;
683
valBounds.
Height
-= borderWidths.Bottom;
708
valBounds.
Height
-= cellStyle.Padding.Vertical;
964
valBounds.
Height
-= 2 * DATAGRIDVIEWBUTTONCELL_verticalTextMargin;
971
valBounds.
Height
--;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (7)
854
rect.
Height
= (advancedBorderStyle.Bottom == DataGridViewAdvancedCellBorderStyle.None) ? 0 : 1;
857
rect.
Height
++;
874
rect.
Height
+= OwningRow.DividerHeight;
3198
bounds.
Height
-= dividerThickness;
3617
rectPadding.
Height
= cellStyle.Padding.Top;
3620
rectPadding.
Height
= cellStyle.Padding.Bottom;
3807
borderAndPaddingWidths.
Height
+= cellStyle.Padding.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (4)
1066
valBounds.
Height
-= borderWidths.Bottom;
1132
valBounds.
Height
-= cellStyle.Padding.Vertical;
1319
checkBounds.
Height
++;
1338
fullSize.
Height
++;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (5)
768
valBounds.
Height
-= borderWidths.Bottom;
789
valBounds.
Height
-= cellStyle.Padding.Vertical;
851
valBounds.
Height
-= rectThemeMargins.Y + rectThemeMargins.Height;
889
valBounds.
Height
-= cellStyle.Padding.Vertical;
899
valBounds.
Height
-= 2 * VerticalMargin;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (9)
535
borderAndPaddingWidths.
Height
+= cellStyle.Padding.Bottom;
1333
rectBottomSection.
Height
-= 21;
1916
valBounds.
Height
-= borderWidths.Bottom;
1949
valBounds.
Height
-= cellStyle.Padding.Vertical;
2201
dropRect.
Height
++;
2265
focusBounds.
Height
+= 2;
2274
focusBounds.
Height
-= 2;
2289
valBounds.
Height
--;
2311
textBounds.
Height
-= verticalTextMarginTop;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
390
s_rectThemeMargins.
Height
= ThemeMargin - rectContent.Bottom;
541
bounds.
Height
-= borderWidths.Bottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (2)
748
valBounds.
Height
-= borderWidths.Bottom;
772
imageBounds.
Height
-= cellStyle.Padding.Vertical;
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (5)
908
valBounds.
Height
-= borderWidths.Bottom;
935
valBounds.
Height
-= cellStyle.Padding.Vertical;
945
valBounds.
Height
-= VerticalTextMarginTop + VerticalTextMarginBottom;
948
valBounds.
Height
-= VerticalTextMarginBottom;
1002
focusBounds.
Height
+= 2;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (2)
78
rowRect.
Height
= 0;
82
rowRect.
Height
= rowRectBottom - rowRect.Top;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (5)
650
valBounds.
Height
-= borderWidths.Bottom;
670
valBounds.
Height
-= cellStyle.Padding.Vertical;
722
valBounds.
Height
-= rectThemeMargins.X + rectThemeMargins.Width;
754
valBounds.
Height
-= cellStyle.Padding.Vertical;
844
valBounds.
Height
-= 2 * VerticalTextMargin;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (6)
195
editingControlBounds.
Height
= Math.Max(0, editingControlBounds.Height - DATAGRIDVIEWTEXTBOXCELL_verticalTextOffsetTop);
201
editingControlBounds.
Height
++;
207
editingControlBounds.
Height
= Math.Max(0, editingControlBounds.Height - DATAGRIDVIEWTEXTBOXCELL_verticalTextOffsetBottom);
673
valBounds.
Height
-= borderWidths.Bottom;
703
valBounds.
Height
-= cellStyle.Padding.Vertical;
726
valBounds.
Height
-= verticalTextMarginTop + DATAGRIDVIEWTEXTBOXCELL_verticalTextMarginBottom;
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (3)
237
valBounds.
Height
-= borderWidths.Bottom;
293
valBounds.
Height
-= cellStyle.Padding.Vertical;
302
valBounds.
Height
-= 2 * DATAGRIDVIEWTOPLEFTHEADERCELL_verticalTextMargin;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (4)
189
textBounds.
Height
= measuredBounds.Height;
209
boxBounds.
Height
-= font.Height / 2;
233
clipMiddle.
Height
-= (textBounds.Bottom - boxBounds.Top);
292
textBounds.
Height
= measuredBounds.Height;
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
1463
bounds.
Height
= _requestedHeight;
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
74
bounds.
Height
= visibleArea.Bottom - bounds.Top;
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (2)
104
r.
Height
-= 1;
110
r.
Height
-= 1;
System\Windows\Forms\Controls\ListView\ListView.cs (2)
5012
rectInvalid.
Height
+= rectInvalid.Y;
5022
rectInvalid.
Height
+= ClientRectangle.Bottom - rectInvalid.Bottom;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
370
result.
Height
= (int)(imageSize.Height * ratio);
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1887
rectangle.
Height
= s_cyDivider;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.SnappableControl.cs (1)
42
r.
Height
--;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
50
inside.
Height
-= 3;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (2)
1618
rect.
Height
+= 2;
1857
rectPaint.
Height
--;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (5)
616
rect.
Height
= propertyGridViewBottom - pt.Y;
1906
rect.
Height
= RowHeight;
1975
boundsScroll.
Height
= sizeWindow.Height - 2;
2006
rect.
Height
= Size.Height - rect.Y - 1;
4373
rect.
Height
-= 1;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (2)
435
newBounds.
Height
= Math.Max(s_minDropDownSize.Height, _dragBaseRect.Height + (dragPoint.Y - _dragStart.Y));
448
newBounds.
Height
= _dragBaseRect.Height - delta;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (1)
33
bounds.
Height
-= 1;
System\Windows\Forms\Controls\Splitter\Splitter.cs (4)
403
bounds.
Height
= value;
407
bounds.
Height
= value;
565
r.
Height
= minWeight;
573
r.
Height
= minWeight;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
745
rect.
Height
-= gripheight;
4179
gripRectangle.
Height
= displayRect.Height;
4196
gripRectangle.
Height
= Grip.GripThickness;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (1)
79
options.Client.
Height
-= heightOfDropDown;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
97
rect.
Height
-= UpScrollButton.Height + UpScrollButton.Margin.Vertical + DownScrollButton.Height + DownScrollButton.Margin.Vertical;
136
_imageMarginBounds.
Height
= Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
340
bounds.
Height
-= 1;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (1)
97
checkRectangle.
Height
= imageHeight;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
96
bounds.
Height
= ParentInternal.Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (1)
1030
bounds.
Height
= ParentInternal.DisplayRectangle.Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
323
bounds.
Height
-= spaceToFree;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
565
cachedBounds.
Height
= (spaceToFree < 0) ? minSize.Height + -spaceToFree : minSize.Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (2)
59
dragBounds.
Height
+= dragBounds.Y - y;
67
dragBounds.
Height
+= (nextRowBounds.Height >> 2) + Row.Margin.Bottom + ToolStripPanel.RowsInternal[index + 1].Margin.Top;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (3)
36
displayRect.
Height
= ToolStripPanel.ParentInternal.DisplayRectangle.Height - (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical;
40
displayRect.
Height
= raftingDisplayRectangle.Height - Row.Margin.Vertical;
71
dragBounds.
Height
+= Row.Margin.Vertical + ToolStripPanel.Padding.Vertical + 5;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (6)
699
bounds.
Height
-= 4; /*shrink to accomodate 1PX line*/
978
beginGradient.
Height
= firstGradientWidth;
979
endGradient.
Height
= secondGradientWidth + 1;
1009
endGradient.
Height
-= 1;
1236
overflowBoundsFill.
Height
= _overflowButtonWidth;
1465
bounds.
Height
= Math.Max(0, bounds.Height - 6);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (5)
250
bounds.
Height
-= 1;
290
bounds.
Height
= ((bounds.Height - 2/*number of pixels for border*/) / 4) * 4; // make sure height is an even interval of 4.
322
bounds.
Height
= 3;
585
bounds.
Height
-= 1;
662
bounds.
Height
-= 1;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (3)
551
backRect.
Height
+= 2;
566
backRect.
Height
++;
572
backRect.
Height
++;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (2)
146
rect.
Height
/= 2;
185
rectUp.
Height
/= 2;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (1)
38
bounds.
Height
/= 2;
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
264
bounds.
Height
= BUTTON_HEIGHT;
System\Windows\Forms\Form.cs (4)
3071
bounds.
Height
= correct.Height;
3084
bounds.
Height
+= delta;
5198
_restoredWindowBounds.
Height
= height;
5221
_restoreBounds.
Height
= height;
System\Windows\Forms\Layout\CommonProperties.cs (3)
208
bounds.
Height
= Math.Min(bounds.Height, value.Height);
232
bounds.
Height
= Math.Max(bounds.Height, value.Height);
316
originalBounds.
Height
= height;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
1380
r.
Height
= Height;
1399
r.
Height
= SplitterWidthInternal;
1574
_splitterRect.
Height
= Height;
1581
_splitterRect.
Height
= SplitterWidthInternal;
System\Windows\Forms\Layout\DefaultLayout.cs (2)
407
remainingBounds.
Height
-= element.Bounds.Height;
419
remainingBounds.
Height
-= element.Bounds.Height;
System\Windows\Forms\Layout\LayoutUtils.cs (8)
333
withinThis.
Height
= alignThis.Height;
349
withinThis.
Height
= alignThis.Height;
377
rect.
Height
+= padding.Vertical;
386
rect.
Height
-= padding.Vertical;
519
region1.
Height
= specifiedContent.Height;
521
region2.
Height
-= specifiedContent.Height;
525
region1.
Height
= specifiedContent.Height;
526
region2.
Height
-= specifiedContent.Height;
System\Windows\Forms\Layout\TableLayout.cs (2)
1264
cellBounds.
Height
= Math.Max(cellBounds.Height, 1);
1273
elementBounds.
Height
= Math.Min(cellBounds.Height, elementBounds.Height);
System\Windows\Forms\Printing\PrintPreviewControl.cs (3)
431
rect.
Height
= Math.Max(0, rect.Height - 1);
445
rect.
Height
-= _hScrollBar.Height;
699
box.
Height
--;
System\Windows\Forms\Rendering\ControlPaint.cs (4)
109
result.
Height
= (int)((imageSize.Height * xRatio) + .5);
118
result.
Height
= bounds.Height;
1418
rectangle.
Height
--;
1503
rectangle.
Height
--;
System\Windows\Forms\Rendering\TextExtensions.cs (1)
93
bounds.
Height
-= bounds.Y;
System\Windows\Forms\Scrolling\ScrollableControl.cs (7)
206
rect.
Height
= _displayRect.Height;
224
displayRectangle.
Height
= Math.Max(displayRectangle.Height, AutoScrollMinSize.Height);
293
display.
Height
= client.Height;
316
fullClient.
Height
+= SystemInformation.HorizontalScrollBarHeight;
320
minClient.
Height
-= SystemInformation.HorizontalScrollBarHeight;
503
clientToBe.
Height
-= SystemInformation.HorizontalScrollBarHeight;
1052
_displayRect.
Height
= height;
System.Windows.Forms.Design (56)
System\Drawing\Design\ColorEditor.ColorPalette.cs (2)
126
rect.
Height
= s_cellSizeY;
366
Height
= s_cellSizeY,
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
312
rectTabControl.
Height
-= rectTabControl.Y;
System\Drawing\Design\IconEditor.cs (1)
129
rectangle.
Height
= icon.Height;
System\Drawing\Design\ImageEditor.cs (1)
178
r.
Height
--;
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (1)
48
hitBounds.
Height
+= DesignerUtils.s_selectionBorderHitArea - DesignerUtils.s_selectionBorderSize;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (7)
126
rect.
Height
+= _parentGridSize.Height - yDelta;
130
rect.
Height
-= yDelta;
139
rect.
Height
-= _parentGridSize.Height - yDelta;
144
rect.
Height
+= yDelta;
150
rect.
Height
= Math.Max(rect.Height, _parentGridSize.Height);
679
bounds.
Height
= Math.Max(minHeight, baseBounds.Height + pixelHeight);
697
bounds.
Height
= Math.Max(minHeight, baseBounds.Height + yOffset);
System\Windows\Forms\Design\Behavior\SelectionBorderGlyph.cs (2)
46
hitBounds.
Height
+= DesignerUtils.s_selectionBorderHitArea - DesignerUtils.s_selectionBorderSize;
57
hitBounds.
Height
+= DesignerUtils.s_selectionBorderHitArea - DesignerUtils.s_selectionBorderSize;
System\Windows\Forms\Design\ComponentTray.cs (6)
1208
_mouseDragWorkspace.
Height
= Math.Abs(end.Y - start.Y);
1343
Height
= Math.Abs(e.Y - _mouseDragStart.Y)
1997
rc.
Height
= _cyIcon + 2 * WhiteSpace + sz.Height + 4 * _borderWidth;
2002
rc.
Height
= Math.Max(_cyIcon, sz.Height) + 4 * _borderWidth;
2278
rc.
Height
-= 2 * _borderWidth;
2294
rc.
Height
-= _cyIcon;
System\Windows\Forms\Design\ControlDesigner.cs (2)
2249
borderRectangle.
Height
-= 2;
2256
textRect.
Height
-= (textRect.Y + marginY + penThickness);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
993
bounds.
Height
-= 2 * OWNERDRAWITEMIMAGEBUFFER;
System\Windows\Forms\Design\DesignerUtils.cs (2)
492
bounds.
Height
+= 2 * offset;
496
bounds.
Height
+= 2 * offset;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (3)
215
bounds.
Height
-= 1;
222
bounds.
Height
+= margin.Vertical;
322
_childInfo[controlIndex].MarginBounds.
Height
= size.Size;
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
81
rectangle.
Height
++;
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
416
rectangle.
Height
= 5;
System\Windows\Forms\Design\PanelDesigner.cs (1)
40
rc.
Height
--;
System\Windows\Forms\Design\ParentControlDesigner.cs (9)
507
bounds.
Height
= size.Height;
1096
adjustedRect.
Height
= dragRect.Height;
1173
updatedRect.
Height
= ((dragRect.Y + dragRect.Height) / gridSize.Height) * gridSize.Height - updatedRect.Y;
1180
updatedRect.
Height
= gridSize.Height;
1869
offset.
Height
= minControlSize.Height;
1923
_mouseDragOffset.
Height
= y - _mouseDragBase.Y;
1943
_mouseDragOffset.
Height
+= offset.Y;
1956
_mouseDragOffset.
Height
= -_mouseDragOffset.Height;
2042
paintRect.
Height
++;
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
54
rc.
Height
--;
System\Windows\Forms\Design\SelectionUIHandler.cs (4)
77
containerRect.
Height
= screen.Height;
108
b.
Height
= bounds[i].Height;
362
newBounds.
Height
= tempNewBounds.Height;
367
newBounds.
Height
= tempNewBounds.Height;
System\Windows\Forms\Design\SelectionUIService.cs (5)
681
_mouseDragOffset.
Height
= _mouseDragAnchor.Y - screenCoord.Y;
685
_mouseDragOffset.
Height
= screenCoord.Y - _mouseDragAnchor.Y;
695
delta.
Height
-= old.Height;
1082
newOffset = offset with { Width = 0,
Height
= 0 };
1086
newOffset.Width = newOffset.
Height
= 0;
System\Windows\Forms\Design\SplitterDesigner.cs (1)
28
rectangle.
Height
--;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
850
rc.
Height
--;
System\Windows\Forms\Design\TabOrder.cs (1)
258
convertedRectangle.
Height
= sz.Height + 2;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
163
bounds.
Height
--;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
243
rc.
Height
--;
1210 references to Height
PresentationUI (6)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1036
cellBounds.Y + (cellBounds.
Height
- boxSize.Height) / 2);
MS\Internal\Documents\SignatureSummaryDialog.cs (5)
660
bounds.
Height
- CellPadding.Top - CellPadding.Bottom
670
bounds.
Height
- CellPadding.Top - CellPadding.Bottom
678
bounds.
Height
- CellPadding.Top - CellPadding.Bottom
705
bounds.
Height
- CellPadding.Top - CellPadding.Bottom
713
bounds.
Height
- CellPadding.Top - CellPadding.Bottom
System.ComponentModel.TypeConverter (2)
System\Drawing\RectangleConverter.cs (2)
78
intConverter.ConvertToString(context, culture, rect.
Height
)
90
rect.X, rect.Y, rect.Width, rect.
Height
});
System.Drawing.Common.Tests (108)
mono\System.Imaging\MetafileTest.cs (2)
71
Assert.Equal(4127, header.Bounds.
Height
);
194
Assert.Equal(0, mh.Bounds.
Height
);
System\Drawing\BitmapTests.cs (4)
375
Assert.Equal(rectangle.
Height
, clone.Height);
381
for (int y = 0; y < rectangle.
Height
; y++)
411
Assert.Equal(rectangle.
Height
, clone.Height);
1069
Assert.Equal(rectangle.
Height
, data.Height);
System\Drawing\Imaging\ImageAttributesTests.cs (94)
70
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
77
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, clone);
94
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
99
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
103
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
147
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
152
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
157
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
171
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
179
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
183
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
187
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
202
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
210
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
273
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
281
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
298
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
308
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
312
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
316
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
342
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
348
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
365
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
371
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
392
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
398
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
421
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
427
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
482
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
487
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
495
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
500
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
508
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
513
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
537
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
543
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
551
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
557
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
581
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
586
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
594
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
599
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
607
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
612
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
638
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
645
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
669
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
676
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
684
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
692
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
717
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
726
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
734
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
743
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
751
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
760
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
785
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
792
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
800
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
807
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
815
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
821
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
848
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
855
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
863
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
870
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
904
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
910
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
930
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
936
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
960
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
966
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1009
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1016
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1024
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1031
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1056
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1062
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1122
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1130
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1138
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1146
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1171
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1176
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1184
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1189
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1197
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1202
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1248
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1254
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1262
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1268
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.Y, _rectangle.Width, _rectangle.
Height
, GraphicsUnit.Pixel, imageAttr);
1307
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
1322
using Bitmap bitmap = new(_rectangle.Width, _rectangle.
Height
);
System\Drawing\RegionTests.cs (8)
1342
Assert.Equal(expected, region.IsVisible(rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
));
1343
Assert.Equal(expected, region.IsVisible((float)rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
));
1344
Assert.Equal(expected, region.IsVisible(rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, s_graphic));
1345
Assert.Equal(expected, region.IsVisible(rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, disposedGraphics));
1346
Assert.Equal(expected, region.IsVisible(rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, null));
1347
Assert.Equal(expected, region.IsVisible((float)rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, s_graphic));
1348
Assert.Equal(expected, region.IsVisible((float)rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, disposedGraphics));
1349
Assert.Equal(expected, region.IsVisible((float)rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, null));
System.Drawing.Primitives (18)
System\Drawing\Rectangle.cs (17)
74
readonly get => new Size(Width,
Height
);
146
public readonly int Bottom => unchecked(Y +
Height
);
150
/// or a <see cref='System.Drawing.Rectangle.
Height
'/> of 0.
167
left.X == right.X && left.Y == right.Y && left.Width == right.Width && left.
Height
== right.
Height
;
223
public readonly bool Contains(int x, int y) => X <= x && x < X + Width && Y <= y && y < Y +
Height
;
237
(Y <= rect.Y) && (rect.Y + rect.
Height
<= Y +
Height
);
239
public override readonly int GetHashCode() => HashCode.Combine(X, Y, Width,
Height
);
281
Height = result.
Height
;
293
int y2 = Math.Min(a.Y + a.
Height
, b.Y + b.
Height
);
308
(rect.Y < Y +
Height
) && (Y < rect.Y + rect.
Height
);
318
int y2 = Math.Max(a.Y + a.
Height
, b.Y + b.
Height
);
343
public override readonly string ToString() => $"{{X={X},Y={Y},Width={Width},Height={
Height
}}}";
System\Drawing\RectangleF.cs (1)
323
public static implicit operator RectangleF(Rectangle r) => new RectangleF(r.X, r.Y, r.Width, r.
Height
);
System.Private.Windows.Core (1)
System\Private\Windows\Core\BinaryFormat\BinaryFormatWriter.cs (1)
170
value.
Height
).Write(writer);
System.Windows.Forms (755)
System\Windows\Forms\Accessibility\AccessibleObject.cs (3)
1062
height = BoundingRectangle.
Height
,
1702
*pcyHeight = bounds.
Height
;
1715
*pcyHeight = bounds.
Height
;
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
201
=> rect.IsEmpty || rect.Width <= 0 || rect.
Height
<= 0;
System\Windows\Forms\ActiveX\AxHost.cs (2)
1201
if (oldBounds.X == x && oldBounds.Y == y && oldBounds.Width == width && oldBounds.
Height
== height)
1215
if (width != oldBounds.Width || height != oldBounds.
Height
)
System\Windows\Forms\Control.cs (11)
1011
set => SetBounds(value.X, value.Y, value.Width, value.
Height
, BoundsSpecified.All);
4905
if (targetBounds.Width <= 0 || targetBounds.
Height
<= 0
4917
int height = Math.Min(Height, targetBounds.
Height
);
5305
int sh = bounds.
Height
;
5335
int localHeight = bounds.
Height
- adornmentsBeforeDpiChange.Height;
8165
e.Graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.
Height
- 1);
8234
rectangle.
Height
);
10073
height = adjustedBounds.
Height
;
11748
if (doubleBuffered && (clip.Width <= 0 || clip.
Height
<= 0))
12636
if (sizeProperty is not null && !sizeProperty.IsReadOnly && (bounds.Width != Width || bounds.
Height
!= Height))
12664
SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.
Height
, specified);
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (1)
1183
ShowToolTip = (ClientRectangle.Width < preferredSize.Width || ClientRectangle.
Height
< preferredSize.Height);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (11)
139
Point p3 = new(bounds.X, bounds.Y + bounds.
Height
- 1); // Bottom inner left
140
Point p4 = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.
Height
- 1); // Inner bottom right
194
Point p3 = new(bounds.X, bounds.Y + bounds.
Height
- 1); // Bottom inner left
195
Point p4 = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.
Height
- 1); // Inner bottom right
242
Point p3 = new(bounds.X, bounds.Y + bounds.
Height
- 1); // Bottom inner left
243
Point p4 = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.
Height
- 1); // Inner bottom right
330
size = Math.Min(size, Math.Min(bounds.Width, bounds.
Height
));
332
Rectangle left = new(bounds.X, bounds.Y, size, bounds.
Height
);
333
Rectangle right = new(bounds.X + bounds.Width - size, bounds.Y, size, bounds.
Height
);
335
Rectangle bottom = new(bounds.X + size, bounds.Y + bounds.
Height
- size, bounds.Width - size * 2, size);
438
graphics.DrawRectangle(pen, r.X, r.Y, r.Width - 1, r.
Height
- 1);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (15)
284
layout.TextBounds.
Height
+ 3);
293
if (layout.Focus.
Height
% 2 == 0)
383
layout.CheckBounds.Y = (field.Y + field.
Height
) - layout.CheckBounds.
Height
;
391
layout.CheckBounds.Y = field.Y + (field.
Height
- layout.CheckBounds.
Height
) / 2;
403
layout.CheckArea.Height = field.
Height
;
415
layout.CheckArea.Height = field.
Height
;
434
layout.CheckArea.Y = field.Y + field.
Height
- checkSizeFull;
580
Math.Min(layout.TextBounds.Y, layout.Field.Y + (layout.Field.
Height
- layout.TextBounds.
Height
) / 2),
609
Math.Min(maxBounds.
Height
- layout.TextBounds.
Height
, layout.ImageBounds.
Height
));
610
layout.TextBounds.Y = layout.ImageBounds.Y + layout.ImageBounds.
Height
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (3)
299
&& cacheCheckImage.Height == fullSize.
Height
)
307
RECT rcCheck = new Rectangle(0, 0, fullSize.Width, fullSize.
Height
);
308
Bitmap bitmap = new(fullSize.Width, fullSize.
Height
);
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
262
=> rect.IsEmpty || rect.Width <= 0 || rect.
Height
<= 0;
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (9)
35
_outerBorder = new Rectangle(_clientRect.Location, new Size(_clientRect.Width - 1, _clientRect.
Height
- 1));
36
_innerBorder = new Rectangle(_outerBorder.X + 1, _outerBorder.Y + 1, _outerBorder.Width - dropDownButtonWidth - 2, _outerBorder.
Height
- 2);
37
_innerInnerBorder = new Rectangle(_innerBorder.X + 1, _innerBorder.Y + 1, _innerBorder.Width - 2, _innerBorder.
Height
- 2);
38
_dropDownRect = new Rectangle(_innerBorder.Right + 1, _innerBorder.Y, dropDownButtonWidth, _innerBorder.
Height
+ 1);
95
new Rectangle(_outerBorder.X, _outerBorder.Y, _dropDownRect.Width + 1, _outerBorder.
Height
));
101
new Rectangle(_dropDownRect.X, _outerBorder.Y, _outerBorder.Right - _dropDownRect.X, _outerBorder.
Height
));
143
new Rectangle(_outerBorder.X, _outerBorder.Y, _dropDownRect.Width + 1, _outerBorder.
Height
));
149
new Rectangle(_dropDownRect.X, _outerBorder.Y, _outerBorder.Right - _dropDownRect.X, _outerBorder.
Height
));
167
Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.
Height
/ 2);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
462
_horizScrollBar.Top = ClientRectangle.
Height
- _horizScrollBar.Height;
2542
int displayHeight = _layout.Data.
Height
;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (79)
495
int displayHeight = _layout.Data.
Height
;
940
&& _layout.Data.
Height
> totalVisibleFrozenHeight
1321
int displayHeight = _layout.Data.
Height
;
2019
? TopLeftHeaderCell.GetPreferredWidth(-1, _layout.TopLeftHeader.
Height
)
2040
int displayHeight = _layout.Data.
Height
, cy = 0;
2181
? TopLeftHeaderCell.GetPreferredWidth(-1, _layout.TopLeftHeader.
Height
)
2202
int displayHeight = _layout.Data.
Height
, cy = 0;
2778
clip.Height = _layout.Data.Y + _layout.Data.
Height
- topEdge - 1;
2983
inside.
Height
);
2993
inside.
Height
);
3008
inside.
Height
);
4275
int displayHeight = _layout.Data.
Height
- totalVisibleFrozenHeight;
4368
newLayout.Inside = _normalClientRectangle.Width > 0 || _normalClientRectangle.
Height
> 0
4375
if (inside.
Height
< 0)
4391
colHeaders.Height = Math.Min(_columnHeadersHeight, colHeaders.
Height
);
4392
insideLeft.Y += colHeaders.
Height
;
4393
insideLeft.Height -= colHeaders.
Height
;
4394
Debug.Assert(insideLeft.
Height
>= 0);
4467
if (insideLeft.
Height
> 0)
4480
Debug.Assert(newLayout.Data.
Height
>= 0);
4550
_vertScrollBar.LargeChange = _layout.Data.
Height
- totalVisibleFrozenHeight;
4774
int displayHeight = _layout.Data.
Height
;
5638
Rectangle rectInsertionBar = new(0, _layout.ColumnHeaders.Top, InsertionBarWidth, _layout.ColumnHeaders.
Height
);
5714
PInvoke.PatBlt(dc, r.X, r.Y + r.
Height
- DATAGRIDVIEW_shadowEdgeThickness, r.Width, DATAGRIDVIEW_shadowEdgeThickness, ROP_CODE.PATINVERT);
5715
PInvoke.PatBlt(dc, r.X, r.Y + DATAGRIDVIEW_shadowEdgeThickness, DATAGRIDVIEW_shadowEdgeThickness, r.
Height
- 2 * DATAGRIDVIEW_shadowEdgeThickness, ROP_CODE.PATINVERT);
5716
PInvoke.PatBlt(dc, r.X + r.Width - DATAGRIDVIEW_shadowEdgeThickness, r.Y + DATAGRIDVIEW_shadowEdgeThickness, DATAGRIDVIEW_shadowEdgeThickness, r.
Height
- 2 * DATAGRIDVIEW_shadowEdgeThickness, ROP_CODE.PATINVERT);
5731
PInvoke.PatBlt(dc, r.X, r.Y, r.Width, r.
Height
, ROP_CODE.PATINVERT);
6401
int displayHeight = _layout.Data.
Height
;
6428
int maxDisplayedRows = rectScreen.
Height
/ DataGridViewBand.MinBandThickness;
8308
? new Rectangle(cx - displayWidth, data.Y, displayWidth, data.
Height
)
8309
: new Rectangle(cx, data.Y, displayWidth, data.
Height
);
8313
columnRect.Height += _layout.ColumnHeaders.
Height
;
8314
columnRect.Y -= _layout.ColumnHeaders.
Height
;
8573
int emptyBackgroundHeight = Math.Max(0, _layout.Data.
Height
- frozenVisibleRowsHeight - trailingScrollingRowsHeight);
9327
else if (_layout.TopLeftHeader.Top + _layout.TopLeftHeader.
Height
- y < RowSizingHotZone)
9333
hti._mouseBarOffset = _layout.TopLeftHeader.Top + _layout.TopLeftHeader.
Height
- y - 1;
10177
&& horizScrollBarHeight <= _layout.Data.
Height
)
10179
int oldDataHeight = _layout.Data.
Height
;
10181
Debug.Assert(_layout.Data.
Height
>= 0);
10204
Debug.Assert(_layout.RowHeaders.
Height
>= 0);
10221
&& _layout.Data.
Height
> totalVisibleFrozenHeight
10252
&& horizScrollBarHeight <= _layout.Data.
Height
)
10271
Debug.Assert(_layout.Data.
Height
>= 0);
10278
&& _layout.Data.
Height
> totalVisibleFrozenHeight
10348
int vertScrollBarHeight = _layout.Data.
Height
;
10352
vertScrollBarHeight += _layout.ColumnHeaders.
Height
;
10364
_vertScrollBar.LargeChange = _layout.Data.
Height
- totalVisibleFrozenHeight;
14504
if (rightArea.Width > 0 && rightArea.
Height
> 0)
14517
if (rightArea.Width > 0 && rightArea.
Height
> 0)
16845
edge.Y += rect.
Height
- 1;
17452
oldClientRectangle.
Height
);
17454
oldClientRectangle.Y + oldClientRectangle.
Height
- borderWidth,
17474
newClientRectangle.
Height
);
17478
if (newClientRectangle.
Height
!= oldClientRectangle.
Height
)
17482
newClientRectangle.Y + newClientRectangle.
Height
- borderWidth,
17494
oldGridFocusRectangle.
Height
);
17498
oldGridFocusRectangle.Y + oldGridFocusRectangle.
Height
- 1,
19219
rcBelowRows.Y += _layout.ColumnHeaders.
Height
;
19220
rcBelowRows.Height -= _layout.ColumnHeaders.
Height
;
19230
if (rcBelowRows.Width > 0 && rcBelowRows.
Height
> 0)
19269
if (rcBelowRows.
Height
> 0)
19271
rcNextRows.Height = gridBounds.
Height
- rcBelowRows.
Height
;
19274
if (rcNextRows.Width > 0 && rcNextRows.
Height
> 0)
19298
edge.Y = bounds.
Height
- borderWidth;
19304
edge.Height = bounds.
Height
;
19323
g.DrawRectangle(pen, new Rectangle(0, 0, bounds.Width - 1, bounds.
Height
- 1));
19333
g.DrawRectangle(pen, new Rectangle(0, 0, bounds.Width - 1, bounds.
Height
- 1));
19530
int columnHeadersHeight = _layout.ColumnHeaders.
Height
;
19540
if (rc.
Height
> 0)
19613
cy += rowBounds.
Height
;
19614
if (cy >= boundingRect.
Height
)
19624
if (DisplayedBandsInfo.FirstDisplayedScrollingRow >= 0 && cy < boundingRect.
Height
)
19669
cy += rowBounds.
Height
;
19670
if (cy >= boundingRect.
Height
)
19817
if (editingZone.Width == 0 || editingZone.
Height
== 0)
19860
if (cellClip.Width == 0 || cellClip.
Height
== 0)
26360
Debug.Assert(rowsRect.
Height
>= 0);
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (7)
295
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.
Height
+ cellStyle.Padding.Vertical;
311
marginHeights = rectThemeMargins.Y + rectThemeMargins.
Height
;
685
if (valBounds.
Height
<= 0 || valBounds.Width <= 0)
713
if (valBounds.
Height
> 0 && valBounds.Width > 0 && (paint || computeContentBounds))
875
Debug.Assert(valBounds.
Height
<= 0 || valBounds.Width <= 0);
885
valBounds.
Height
> 2 * SystemInformation.Border3DSize.Height + 1)
974
if (valBounds.Width > 0 && valBounds.
Height
> 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (18)
1017
cellValueBounds.
Height
>= IconMarginHeight * 2 + s_iconsHeight)
1022
cellValueBounds.Y + (cellValueBounds.
Height
- s_iconsHeight) / 2,
2774
if (preferredHeight > contentBounds.
Height
|| widthTruncated)
3165
bounds.
Height
);
3182
if (dividerThickness > bounds.
Height
)
3184
dividerThickness = bounds.
Height
;
3199
if (bounds.
Height
<= 0)
3538
cellValueBounds.
Height
>= IconMarginHeight * 2 + s_iconsHeight)
3566
cellValueBounds.
Height
>= IconMarginHeight * 2 + s_iconsHeight)
3569
if (iconBounds.Width >= IconMarginWidth && iconBounds.
Height
>= s_iconsHeight)
3598
rectPadding = new Rectangle(bounds.X, bounds.Y, cellStyle.Padding.Right, bounds.
Height
);
3607
rectPadding = new Rectangle(bounds.X, bounds.Y, cellStyle.Padding.Left, bounds.
Height
);
3772
DataGridView.EditingControl.Size = new Size(editingControlBounds.Width, editingControlBounds.
Height
);
3810
int yEditingPanel, hEditingPanel = cellBounds.
Height
;
3846
if (cellClip.Bottom <= cellBounds.Bottom - borderAndPaddingWidths.
Height
)
3852
hEditingPanel -= borderAndPaddingWidths.
Height
;
3856
hEditingControl = cellBounds.
Height
- borderAndPaddingWidths.Y - borderAndPaddingWidths.
Height
;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (7)
651
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.
Height
+ cellStyle.Padding.Vertical;
1199
if (valBounds.Width >= checkBoxSize.Width && valBounds.
Height
>= checkBoxSize.Height && (paint || computeContentBounds))
1224
checkBoxY = valBounds.Top + (valBounds.
Height
- checkBoxSize.Height) / 2;
1340
if (s_checkImage is null || s_checkImage.Width != fullSize.Width || s_checkImage.Height != fullSize.
Height
)
1350
RECT rcCheck = new Rectangle(0, 0, fullSize.Width, fullSize.
Height
);
1351
Bitmap bitmap = new(fullSize.Width, fullSize.
Height
);
1548
Debug.Assert(valBounds.Width < checkBoxSize.Width || valBounds.
Height
< checkBoxSize.Height, "the bounds are empty");
System\Windows\Forms\Controls\DataGridView\DataGridViewColumn.cs (1)
971
int displayHeight = dataGridView.LayoutInfo.Data.
Height
;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (16)
499
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.
Height
+ cellStyle.Padding.Vertical;
698
preferredSize.Height += rectThemeMargins.Y + rectThemeMargins.
Height
;
794
if (paint && PaintBackground(paintParts) && backgroundBounds.Width > 0 && backgroundBounds.
Height
> 0)
832
bmFlipXPThemes.Height < backgroundBounds.
Height
|| bmFlipXPThemes.Height > 2 * backgroundBounds.
Height
)
834
bmFlipXPThemes = FlipXPThemesBitmap = new Bitmap(backgroundBounds.Width, backgroundBounds.
Height
);
838
DataGridViewColumnHeaderCellRenderer.DrawHeader(gFlip, new Rectangle(0, 0, backgroundBounds.Width, backgroundBounds.
Height
), state);
840
g.DrawImage(bmFlipXPThemes, backgroundBounds, new Rectangle(bmFlipXPThemes.Width - backgroundBounds.Width, 0, backgroundBounds.Width, backgroundBounds.
Height
), GraphicsUnit.Pixel);
851
valBounds.Height -= rectThemeMargins.Y + rectThemeMargins.
Height
;
865
if (paint && PaintBackground(paintParts) && backgroundBounds.Width > 0 && backgroundBounds.
Height
> 0)
902
valBounds.
Height
> 0 &&
934
if (preferredHeight <= valBounds.
Height
&& !widthTruncated)
951
(valBounds.
Height
- s_sortGlyphHeight) / 2);
960
(valBounds.
Height
- s_sortGlyphHeight) / 2);
994
valBounds.
Height
>= s_sortGlyphHeight)
998
valBounds.Top + (valBounds.
Height
- s_sortGlyphHeight) / 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (31)
538
size.Height - borderAndPaddingWidths.Y - borderAndPaddingWidths.
Height
);
1178
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.
Height
+ cellStyle.Padding.Vertical;
1932
if (paint && PaintBackground(paintParts) && !brushColor.HasTransparency() && valBounds.Width > 0 && valBounds.
Height
> 0)
1952
if (paint && valBounds.Width > 0 && valBounds.
Height
> 0)
1958
g.FillRectangle(brush!, valBounds.Left, valBounds.Top, valBounds.Width, valBounds.
Height
);
1974
PaintBackground(paintParts) && !brushColor.HasTransparency() && valBounds.Width > 2 && valBounds.
Height
> 2)
1976
g.FillRectangle(brush!, valBounds.Left + 1, valBounds.Top + 1, valBounds.Width - 2, valBounds.
Height
- 2);
1983
g.DrawRectangle(SystemPens.ControlLightLight, new Rectangle(valBounds.X, valBounds.Y, valBounds.Width - 1, valBounds.
Height
- 1));
1987
g.FillRectangle(brush!, valBounds.Left, valBounds.Top, valBounds.Width, valBounds.
Height
);
1999
dropHeight = Math.Min(GetDropDownButtonHeight(g, cellStyle), paintPostXPThemes ? valBounds.
Height
: valBounds.
Height
- 2);
2003
dropHeight = Math.Min(GetDropDownButtonHeight(g, cellStyle), valBounds.
Height
- 4);
2098
dropRect.X, dropRect.Y + dropRect.
Height
- 1);
2104
g.DrawLine(pen, valBounds.X, valBounds.Y + valBounds.
Height
- 1,
2105
valBounds.X + valBounds.Width - 1, valBounds.Y + valBounds.
Height
- 1);
2107
valBounds.X + valBounds.Width - 1, valBounds.Y + valBounds.
Height
- 1);
2115
g.DrawLine(pen, dropRect.X, dropRect.Y + dropRect.
Height
- 1,
2116
dropRect.X + dropRect.Width - 1, dropRect.Y + dropRect.
Height
- 1);
2118
dropRect.X + dropRect.Width - 1, dropRect.Y + dropRect.
Height
- 1);
2127
valBounds.X, valBounds.Y + valBounds.
Height
- 1);
2137
dropRect.X + 1, dropRect.Y + dropRect.
Height
- 2);
2144
g.DrawLine(pen, dropRect.X + 1, dropRect.Y + dropRect.
Height
- 2,
2145
dropRect.X + dropRect.Width - 2, dropRect.Y + dropRect.
Height
- 2);
2147
dropRect.X + dropRect.Width - 2, dropRect.Y + dropRect.
Height
- 2);
2155
Point middle = new(dropRect.Left + dropRect.Width / 2, dropRect.Top + dropRect.
Height
/ 2);
2159
middle.Y += (dropRect.
Height
% 2);
2179
dropRect.Top + (dropRect.
Height
+ s_nonXPTriangleHeight) / 2);
2183
middle.Y += (dropRect.
Height
% 2);
2245
if (textBounds.Width > 1 && textBounds.
Height
> 1)
2275
if (focusBounds.Width > 0 && focusBounds.
Height
> 0)
2313
if (textBounds.Width > 0 && textBounds.
Height
> 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
394
s_rectThemeMargins.Y + s_rectThemeMargins.Width + s_rectThemeMargins.
Height
== 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (10)
411
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.
Height
+ cellStyle.Padding.Vertical;
588
if (imgWidth * bounds.
Height
< imgHeight * bounds.Width)
594
decimal.ToInt32((decimal)imgWidth * bounds.
Height
/ imgHeight),
595
bounds.
Height
);
658
imageBounds.Y = bounds.Y + (bounds.
Height
- imageBounds.
Height
) / 2;
664
imageBounds.Y = bounds.Bottom - imageBounds.
Height
;
750
if (valBounds.Width <= 0 || valBounds.
Height
<= 0 || (!paint && !computeContentBounds))
760
Debug.Assert(valBounds.
Height
<= 0 || valBounds.Width <= 0);
785
if (imageBounds.Width <= 0 || imageBounds.
Height
<= 0 || (icon is null && image is null))
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (4)
552
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.
Height
+ cellStyle.Padding.Vertical;
977
if (valBounds.Width > 0 && valBounds.
Height
> 0)
1041
errorBounds.
Height
> 0)
1056
valBounds.
Height
> 0)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (8)
1996
GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.Data.
Height
);
2001
useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.Data.
Height
+ DataGridView.VerticalScrollingOffset) &&
2002
firstDisplayedRowHeight <= DataGridView.LayoutInfo.Data.
Height
;
2013
useRowShortcut = DataGridView.LayoutInfo.Data.
Height
< displayedRowsHeightBeforeAddition &&
2014
firstDisplayedRowHeight <= DataGridView.LayoutInfo.Data.
Height
;
2041
GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.Data.
Height
+ SystemInformation.HorizontalScrollBarHeight);
2053
useRowShortcut = GetRowsHeightExceedLimit(DataGridViewElementStates.Visible, 0, rowIndex, DataGridView.LayoutInfo.Data.
Height
+ DataGridView.VerticalScrollingOffset + SystemInformation.HorizontalScrollBarHeight) &&
2054
firstDisplayedRowHeight <= DataGridView.LayoutInfo.Data.
Height
;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (16)
531
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.
Height
+ cellStyle.Padding.Vertical;
540
borderAndPaddingWidths += rectThemeMargins.
Height
;
673
if (backgroundBounds.Width > 0 && backgroundBounds.
Height
> 0)
698
using Bitmap bmFlipXPThemes = new(backgroundBounds.
Height
, backgroundBounds.Width);
700
DataGridViewRowHeaderCellRenderer.DrawHeader(gFlip, new Rectangle(0, 0, backgroundBounds.
Height
, backgroundBounds.Width), state);
706
new Rectangle(0, 0, backgroundBounds.Width, backgroundBounds.
Height
),
714
valBounds.X += rectThemeMargins.
Height
;
721
valBounds.Width -= rectThemeMargins.Y + rectThemeMargins.
Height
;
729
if (valBounds.Width > 0 && valBounds.
Height
> 0)
760
if (valBounds.Width > 0 && valBounds.
Height
> 0)
768
&& valBounds.
Height
>= s_iconsHeight + 2 * RowHeaderIconMarginHeight)
837
Debug.Assert(valBounds.
Height
>= 0);
845
if (valBounds.Width > 0 && valBounds.
Height
> 0)
851
Size maxBounds = new(valBounds.Width - s_iconsWidth - 2 * RowHeaderIconMarginWidth, valBounds.
Height
);
924
valBounds.
Height
>= s_iconsHeight + 2 * RowHeaderIconMarginHeight)
1028
int height = bounds.Y + (bounds.
Height
- s_iconsHeight) / 2;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (9)
195
editingControlBounds.Height = Math.Max(0, editingControlBounds.
Height
- DATAGRIDVIEWTEXTBOXCELL_verticalTextOffsetTop);
207
editingControlBounds.Height = Math.Max(0, editingControlBounds.
Height
- DATAGRIDVIEWTEXTBOXCELL_verticalTextOffsetBottom);
230
if (preferredHeight < editingControlBounds.
Height
)
242
editingControlBounds.Y += (editingControlBounds.
Height
- preferredHeight) / 2;
247
editingControlBounds.Y += editingControlBounds.
Height
- preferredHeight;
404
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.
Height
+ cellStyle.Padding.Vertical;
679
bool notCollapsed = valBounds.Width > 0 && valBounds.
Height
> 0;
727
if (valBounds.Width > 0 && valBounds.
Height
> 0)
799
DataGridView.EditingControl.Size = new Size(editingControlBounds.Width, editingControlBounds.
Height
);
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (2)
147
int borderAndPaddingHeights = borderWidthsRect.Top + borderWidthsRect.
Height
+ cellStyle.Padding.Vertical;
304
valBounds.
Height
> 0 &&
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (4)
329
Size sizeCell = new(cellBounds.Width, cellBounds.
Height
);
408
ptTextLocation.Y = cellBounds.Y + (cellBounds.
Height
- sizeText.Height) / 2;
413
ptTextLocation.Y = cellBounds.Y + (cellBounds.
Height
- sizeText.Height) / 2;
418
ptTextLocation.Y = cellBounds.Y + (cellBounds.
Height
- sizeText.Height) / 2;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (18)
185
new Size(textBounds.Width, textBounds.
Height
),
253
g.DrawLine(light, bounds.Left + 1, bounds.Top + 1, bounds.Left + 1, bounds.
Height
- 1);
254
g.DrawLine(dark, bounds.Left, bounds.Top + 1, bounds.Left, bounds.
Height
- 2);
257
g.DrawLine(light, bounds.Left, bounds.
Height
- 1, bounds.Width - 1, bounds.
Height
- 1);
258
g.DrawLine(dark, bounds.Left, bounds.
Height
- 2, bounds.Width - 1, bounds.
Height
- 2);
265
g.DrawLine(light, bounds.Width - 1, bounds.Top, bounds.Width - 1, bounds.
Height
- 1);
266
g.DrawLine(dark, bounds.Width - 2, bounds.Top, bounds.Width - 2, bounds.
Height
- 2);
288
new Size(textBounds.Width, textBounds.
Height
),
321
bounds.Left, boxTop - 1, bounds.Left, bounds.
Height
- 2, // Left
322
bounds.Left, bounds.
Height
- 2, bounds.Width - 1, bounds.
Height
- 2, // Right
325
bounds.Width - 2, boxTop - 1, bounds.Width - 2, bounds.
Height
- 2 // Right
333
bounds.Left + 1, boxTop, bounds.Left + 1, bounds.
Height
- 1, // Left
334
bounds.Left, bounds.
Height
- 1, bounds.Width, bounds.
Height
- 1, // Right
337
bounds.Width - 1, boxTop, bounds.Width - 1, bounds.
Height
- 1 // Right
System\Windows\Forms\Controls\Labels\Label.cs (4)
891
yLoc = (r.Y + r.
Height
- 4) - pointImageSize.Height;
899
yLoc = r.Y + (r.
Height
- pointImageSize.Height) / 2;
1272
Size preferredSize = GetPreferredSize(new Size(clientRect.Width, clientRect.
Height
));
1273
_showToolTip = (clientRect.Width < preferredSize.Width || clientRect.
Height
< preferredSize.Height);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (10)
391
yLoc = clientRect.Bottom - textRect.
Height
;
395
yLoc = (clientRect.
Height
- textRect.
Height
) / 2;
413
if (textRect.
Height
> clientRect.
Height
)
416
height = clientRect.
Height
;
420
height = textRect.
Height
;
557
Size clientSize = new(clientRectWithPadding.Width, clientRectWithPadding.
Height
);
987
Size preferredSize = GetPreferredSize(new Size(clientRect.Width, clientRect.
Height
));
988
_showToolTip = clientRect.Width < preferredSize.Width || clientRect.
Height
< preferredSize.Height;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (6)
535
if (centeringFactor + _idealCheckSize > bounds.
Height
)
537
centeringFactor = bounds.
Height
- _idealCheckSize;
573
bounds.
Height
);
630
textBounds.
Height
- 2 * BORDER_SIZE); // minus borders
715
e.Bounds.Width > 2 * BORDER_SIZE && e.Bounds.
Height
> 2 * BORDER_SIZE)
723
bounds.
Height
- 2 * BORDER_SIZE); // Upper and lower borders.
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
219
int listBoxHeight = _owningListBox.ClientRectangle.
Height
;
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (3)
103
_ => new Rectangle(point, new Size(itemBounds.Width, itemBounds.
Height
)),
115
itemBounds.
Height
));
131
return new Rectangle(point, new Size(Math.Min(textWidth, itemBounds.Width), itemBounds.
Height
));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
46
_owningItem.Bounds.
Height
);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (1)
24
_owningItem.Bounds.
Height
);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
66
width, bounds.
Height
);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1671
if (height != oldBounds.
Height
)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (4)
362
result.Y += (result.
Height
- _image.Height) / 2;
368
float ratio = Math.Min(ClientRectangle.Width / (float)imageSize.Width, ClientRectangle.
Height
/ (float)imageSize.Height);
372
result.Y = (ClientRectangle.
Height
- result.
Height
) / 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (5)
1960
y = Math.Min((rectTarget.Y + rectTarget.
Height
- 15), y);
1970
if (rc.Width < rc.
Height
)
1974
ControlPaint.DrawReversibleLine(new Point(rc.X + i, rc.Y), new Point(rc.X + i, rc.Y + rc.
Height
), targetControl.BackColor);
1979
for (int i = 0; i < rc.
Height
; i++)
2828
int yNew = rectDoc.
Height
+ rectDoc.Y - _dividerMoveY - (s_cyDivider / 2);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (1)
121
Rectangle focusRect = new(indent, rect.Y, labelWidth + 3, rect.
Height
- 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (14)
1549
g.FillRectangle(backBrush, borderWidth - 1, rect.Y, totalWidth - borderWidth + 3, rect.
Height
);
1553
g.DrawLine(linePen, totalWidth, rect.Y, totalWidth, rect.
Height
);
1561
g.FillRectangle(backBrush, rect.X, rect.Y, rect.Width, rect.
Height
);
1566
g.FillRectangle(stripeBrush, rect.X, rect.Y, borderWidth, rect.
Height
);
1573
stringX, rect.Y, rect.Width - stringX - 1, rect.
Height
);
1577
Rectangle textRect = new(stringX, rect.Y + 1, maxSpace, rect.
Height
- 1);
1715
using HBITMAP compatibleBitmap = PInvokeCore.CreateBitmap(rectangle.Width, rectangle.
Height
, (uint)planes, (uint)bitsPixel, lpBits: null);
1719
compatibleDC.HDC.FillRectangle(new Rectangle(0, 0, rectangle.Width, rectangle.
Height
), brush);
1720
explorerTreeRenderer.DrawBackground(compatibleDC, new Rectangle(0, 0, rectangle.Width, rectangle.
Height
), hwnd);
1756
g.DrawRectangle(pen, outline.X, outline.Y, outline.Width - 1, outline.
Height
- 1);
1763
outline.Y + outline.
Height
/ 2,
1765
outline.Y + outline.
Height
/ 2);
1775
outline.Y + outline.
Height
- indent - 1);
1909
rect.
Height
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
126
_lastClientRectangle.
Height
));
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
538
(rect.
Height
- s_imageSize) / 2,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (17)
457
return new Point(point.X + (rect.Width / 2), point.Y + (rect.
Height
/ 2));
614
if (pt.Y + rect.
Height
> propertyGridViewBottom)
619
return new Rectangle(pt.X, pt.Y, rect.Width, rect.
Height
);
895
control.SetBounds(targetRectangle.X, targetRectangle.Y, targetRectangle.Width, targetRectangle.
Height
);
1428
if (rectScreen.Y + rectScreen.
Height
< (size.Height + location.Y + EditTextBox.Height))
1435
location.Y += rect.
Height
+ 1;
1968
Size sizeWindow = new(rect.Width, rect.
Height
);
3272
Point endPosition = FindPosition(clipRect.X, clipRect.Y + clipRect.
Height
);
3328
yPosition = rect.Y + rect.
Height
;
3577
int yDelta = _lastClientRect == Rectangle.Empty ? 0 : newRect.
Height
- _lastClientRect.
Height
;
3583
Rectangle rectInvalidate = new(_lastClientRect.Width - 1, 0, newRect.Width - _lastClientRect.Width + 1, _lastClientRect.
Height
);
3589
Rectangle rectInvalidate = new(0, _lastClientRect.
Height
- 1, _lastClientRect.Width, newRect.
Height
- _lastClientRect.
Height
+ 1);
3965
if (entry.OutlineRectangle.
Height
!= outlineRectIconSize || entry.OutlineRectangle.Width != outlineRectIconSize)
4327
sizeBtn.Width, rect.
Height
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (3)
435
newBounds.Height = Math.Max(s_minDropDownSize.Height, _dragBaseRect.
Height
+ (dragPoint.Y - _dragStart.Y));
445
if ((_dragBaseRect.
Height
- delta) > s_minDropDownSize.Height)
448
newBounds.Height = _dragBaseRect.
Height
- delta;
System\Windows\Forms\Controls\Splitter\Splitter.cs (9)
406
bounds.Y += bounds.
Height
- _splitSize;
420
OnSplitterMoved(new SplitterEventArgs(Left, Top, (Left + bounds.Width / 2), (Top + bounds.
Height
/ 2)));
563
if (r.
Height
< minWeight)
571
if (r.
Height
< minWeight)
576
r.Y = bounds.Y + bounds.
Height
- splitSize - r.
Height
;
613
DockStyle.Top or DockStyle.Bottom => r.
Height
,
637
_initTargetSize = target.Bounds.
Height
;
702
PInvoke.PatBlt(dc, r.X, r.Y, r.Width, r.
Height
, ROP_CODE.PATINVERT);
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
620
inflateRect.
Height
+ 6);
736
base.SetBoundsCore(r.X, r.Y, r.Width, r.
Height
, specified == BoundsSpecified.None ? BoundsSpecified.None : BoundsSpecified.All);
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseUiaTextProvider.cs (2)
259
return fontHeight != 0 ? (int)Math.Ceiling(((double)rect.
Height
) / fontHeight) : 0;
396
=> rect.IsEmpty || rect.Width <= 0 || rect.
Height
<= 0;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
495
TableLayoutSettings.RowStyles[0].Height = Math.Max(0, DisplayRectangle.
Height
);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (6)
202
CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.Y, bounds.Width, bounds.
Height
, BoundsSpecified.Location);
2370
maxSize.Height += overflowItemMargin.Vertical + overflowItem.Bounds.
Height
;
2652
using Bitmap image = new(bounds.Width, bounds.
Height
);
2669
bounds.
Height
,
4179
gripRectangle.Height = displayRect.
Height
;
4657
SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.
Height
, specified);
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
142
Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.
Height
/ 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (3)
43
CommonProperties.UpdateSpecifiedBounds(c, bounds.X, bounds.Y, bounds.Width, bounds.
Height
);
364
CommonProperties.UpdateSpecifiedBounds(_control, specifiedBounds.X, specifiedBounds.Y, specifiedBounds.Width, specifiedBounds.
Height
);
375
CommonProperties.UpdateSpecifiedBounds(_control, bounds.X, bounds.Y, bounds.Width, bounds.
Height
);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (5)
1029
offset.Y = -dropDownBounds.
Height
;
1032
offset.Y = -dropDownBounds.
Height
;
1202
SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.
Height
, BoundsSpecified.Location);
1528
base.SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.
Height
, specified);
1765
if (bounds.Width > 0 && bounds.
Height
> 0)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.ToolStripDropDownButtonInternalLayout.cs (3)
42
preferredSize.Height += DropDownArrowRect.
Height
+ _dropDownArrowPadding.Vertical;
66
_dropDownArrowRect = new Rectangle(_dropDownArrowPadding.Left, 0, s_dropDownArrowSize.Width, _ownerItem.Bounds.
Height
);
71
_dropDownArrowRect = new Rectangle(options.Client.Right, 0, s_dropDownArrowSize.Width, _ownerItem.Bounds.
Height
);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (3)
308
offset.Y = -dropDownBounds.
Height
+ 1;
311
offset.Y = -dropDownBounds.
Height
+ 1;
386
if (Rectangle.Intersect(dropDownBounds, itemScreenBounds).
Height
> 1)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (6)
325
maxNonMenuItemSize.Height = Math.Max(item.Bounds.
Height
, maxNonMenuItemSize.Height);
457
_textRectangle.Y += (_textRectangle.
Height
% 2); // if the height is odd, push down by one px
477
delta = nextItem.Bounds.Bottom - (displayRect.Y + displayRect.
Height
);
679
deltaToScroll += Items[i].Bounds.
Height
;
706
deltaToScroll -= Items[i].Bounds.
Height
;
801
int height = GetDropDownBounds(Bounds).
Height
;
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (18)
60
int height = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.
Height
: bounds.Width;
61
int width = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Width : bounds.
Height
;
144
g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
190
g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
263
g.DrawRectangle(SystemPens.ButtonHighlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
277
g.DrawRectangle(SystemPens.ButtonShadow, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
298
bool oddHeight = ((bounds.
Height
& 0x1) == 0x1);
304
g.DrawLine(p, bounds.X + indent, bounds.
Height
- 1, bounds.Width - 1, bounds.
Height
- 1);
307
g.DrawLine(p, bounds.X, bounds.Y + indent, bounds.X, bounds.
Height
- 1);
309
g.DrawLine(p, bounds.Width - 1, bounds.Y + indent, bounds.Width - 1, bounds.
Height
- 1);
326
g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, bounds.
Height
- 2, 1, 1));
333
g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.
Height
- 2, 1, 1));
354
if (bounds.
Height
>= 8)
373
int startY = bounds.
Height
/ 2;
420
g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
452
g.DrawRectangle(SystemPens.ControlLight, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
512
g.DrawImage(image, imageRect, 0, 0, imageRect.Width, imageRect.
Height
, GraphicsUnit.Pixel, attrs);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (3)
949
get => Bounds.
Height
;
2010
SetBounds(currentBounds.X, currentBounds.Y, value, currentBounds.
Height
);
3495
return toolStripItemPlacement != ToolStripItemPlacement.Main || bounds.
Height
<= 0 || bounds.Width <= 0;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (1)
96
checkRectangle.Y += (checkRectangle.
Height
- imageHeight) / 2;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.cs (1)
77
SetBoundsCore(bounds.X, bounds.Y, bounds.Width, bounds.
Height
, specified);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (3)
963
cursorLoc.Y += toolStripToDrag.GripRectangle.
Height
/ 2;
1028
else if (Orientation == Orientation.Vertical && (bounds.
Height
== 0))
1030
bounds.Height = ParentInternal.DisplayRectangle.
Height
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (2)
278
constrainingSize.Height = ToolStripPanelRow.Bounds.
Height
;
321
if (spaceToFree > 0 && bounds.
Height
> spaceToFree)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (5)
561
if (cachedBounds.
Height
> minSize.Height)
563
spaceToFree -= (cachedBounds.
Height
- minSize.Height);
572
cellOffsets[j] += Math.Max(0, currentCell.CachedBounds.
Height
- cachedBounds.
Height
);
680
preferredSize.Height = DisplayRectangle.
Height
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (3)
57
int y = previousRowBounds.Y + previousRowBounds.
Height
- (previousRowBounds.
Height
>> 2);
67
dragBounds.Height += (nextRowBounds.
Height
>> 2) + Row.Margin.Bottom + ToolStripPanel.RowsInternal[index + 1].Margin.Top;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (6)
36
displayRect.Height = ToolStripPanel.ParentInternal.DisplayRectangle.
Height
- (ToolStripPanel.Margin.Vertical + ToolStripPanel.Padding.Vertical) - Row.Margin.Vertical;
40
displayRect.Height = raftingDisplayRectangle.
Height
- Row.Margin.Vertical;
94
return totalSize.Height < DisplayRectangle.
Height
;
292
freedSpace += DisplayRectangle.
Height
;
356
int spaceToFree = (lastCell is not null) ? lastCell.Bounds.Bottom - newBounds.
Height
: 0;
573
int spaceOccupiedByCell = cell.Margin.Vertical + cell.Bounds.
Height
;
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (7)
63
bool oddHeight = ((bounds.
Height
& 0x1) == 0x1);
69
g.DrawLine(p, bounds.X + indent, bounds.
Height
- 1, bounds.Width - 1, bounds.
Height
- 1);
72
g.DrawLine(p, bounds.X, bounds.Y + indent, bounds.X, bounds.
Height
- 1);
74
g.DrawLine(p, bounds.Width - 1, bounds.Y + indent, bounds.Width - 1, bounds.
Height
- 1);
91
g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(1, bounds.
Height
- 2, 1, 1));
98
g.FillRectangle(SystemBrushes.ButtonShadow, new Rectangle(bounds.Width - 2, bounds.
Height
- 2, 1, 1));
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (42)
374
g.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
388
g.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
425
g.DrawLine(pen, bounds.Left, bounds.
Height
- 1, bounds.Right, bounds.
Height
- 1);
429
g.DrawLine(pen, bounds.Width - 2, bounds.
Height
- 2, bounds.Width - 1, bounds.
Height
- 3);
435
g.DrawLine(pen, bounds.Width - 1, 0, bounds.Width - 1, bounds.
Height
- 1);
439
g.DrawLine(pen, bounds.Width - 2, bounds.
Height
- 2, bounds.Width - 1, bounds.
Height
- 3);
457
edging = new Rectangle(bounds.Width - 1, 3, 1, bounds.
Height
- 3);
461
edging = new Rectangle(3, bounds.
Height
- 1, bounds.Width - 3, bounds.
Height
- 1);
488
int height = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.
Height
: bounds.Width;
489
int width = (toolStrip.Orientation == Orientation.Horizontal) ? bounds.Width : bounds.
Height
;
548
if ((bounds.Width == 0) || (bounds.
Height
== 0))
588
g.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
645
g.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
663
g.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
855
Point bottomLeft = new(0, bounds.
Height
- 1);
856
Point bottomRight = new(bounds.Width - 1, bounds.
Height
- 1);
955
if ((bounds.Width == 0) || (bounds.
Height
== 0))
980
endGradient.Y = bounds.Bottom - endGradient.
Height
;
981
useDoubleGradient = (bounds.
Height
> (firstGradientWidth + secondGradientWidth));
1048
(e.Item.Height - e.ImageRectangle.
Height
) / 2 - 1,
1049
e.ImageRectangle.Width + 4, e.ImageRectangle.
Height
+ 2)
1062
g.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
1075
g.DrawRectangle(SystemPens.Highlight, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
1081
if ((bounds.Width == 0) || (bounds.
Height
== 0))
1096
g.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
1199
g.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
1235
overflowBoundsFill.Y = overflowBoundsFill.
Height
- _overflowButtonWidth + 1;
1270
Point start = new(overflowBoundsFill.Left - 1, overflowBoundsFill.
Height
- 2);
1271
Point end = new(overflowBoundsFill.Left, overflowBoundsFill.
Height
- 2);
1346
Point bottomLeft = new(0, bounds.
Height
- 1);
1406
if ((bounds.Width == 0) || (bounds.
Height
== 0))
1430
if ((bounds.Width == 0) || (bounds.
Height
== 0))
1465
bounds.Height = Math.Max(0, bounds.
Height
- 6);
1500
if (bounds.
Height
>= 4)
1527
int startY = bounds.
Height
/ 2;
1542
if ((bounds.Width == 0) || (bounds.
Height
== 0))
1596
g.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
1648
Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.
Height
/ 2);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (3)
618
Point middle = new(dropDownRect.Left + dropDownRect.Width / 2, dropDownRect.Top + dropDownRect.
Height
/ 2);
846
imageRect.
Height
, GraphicsUnit.Pixel, e.ImageAttributes);
874
if (e.TextDirection != ToolStripTextDirection.Horizontal && textRect.Width > 0 && textRect.
Height
> 0)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
123
if (overlap.
Height
== 2)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
316
_splitterBounds = new Rectangle(splitButtonButtonBounds.Right, splitButtonButtonBounds.Top, _splitterWidth, splitButtonButtonBounds.
Height
);
322
_splitterBounds = new Rectangle(dropDownButtonBounds.Right, dropDownButtonBounds.Top, _splitterWidth, dropDownButtonBounds.
Height
);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackDragDropHandler.cs (1)
225
int heightUnit = orig.
Height
/ 2;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
141
if (currentHeight > _displayRectangle.
Height
- overflowWidth)
143
int spaceRecovered = SendNextItemToOverflow(currentHeight - _displayRectangle.
Height
, false);
334
itemSize.Height = Math.Max(_displayRectangle.
Height
- itemMargin.Vertical, 0);
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (7)
290
bounds.Height = ((bounds.
Height
- 2/*number of pixels for border*/) / 4) * 4; // make sure height is an even interval of 4.
291
bounds.Y = Math.Max(0, (e.GripBounds.
Height
- bounds.
Height
- 2/*number of pixels for border*/) / 2);
308
if (bounds.
Height
>= 4)
467
g.DrawRectangle(pen, bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
708
if (bounds.
Height
>= 4)
734
int startY = bounds.
Height
/ 2;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
260
g.FillRectangle(brush, 0, clientRect.Bottom, Width, Height - clientRect.
Height
); // bottom border
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
395
SetBounds(r.X, r.Y, r.
Height
, r.Width, BoundsSpecified.All);
System\Windows\Forms\Controls\TrackBar\TrackBarRenderer.cs (5)
110
if (numTicks <= 0 || bounds.
Height
<= 0 || bounds.Width <= 0 || g is null)
120
t_visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, bounds.Y, LineWidth, bounds.
Height
), Edges.Left, edgeStyle, EdgeEffects.None);
130
t_visualStyleRenderer.DrawEdge(g, new Rectangle((int)Math.Round(x), bounds.Y, LineWidth, bounds.
Height
), Edges.Left, edgeStyle, EdgeEffects.None);
140
if (numTicks <= 0 || bounds.
Height
<= 0 || bounds.Width <= 0 || g is null)
154
float inc = ((float)bounds.
Height
- LineWidth) / ((float)numTicks - 1);
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2830
bounds = new Rectangle(textLoc, new Size(textSize.Width, bounds.
Height
));
3431
client = new Point(treeNode.Bounds.X, treeNode.Bounds.Y + treeNode.Bounds.
Height
/ 2);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (4)
531
Rectangle clipLeft = new(bounds.Left, bounds.Top, border, bounds.
Height
);
533
Rectangle clipRight = new(bounds.Right - border, bounds.Top, border, bounds.
Height
);
850
upDownEditBounds.Size = new Size(clientArea.Width - _defaultButtonsWidth, clientArea.
Height
);
866
clientArea.
Height
+ (borderFixup * 2));
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (2)
150
rect.Y += rect.
Height
;
186
rectDown.Y += rectDown.
Height
/ 2;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (1)
42
bounds.Y += bounds.
Height
;
System\Windows\Forms\Design\ComponentEditorForm.cs (4)
243
Rectangle pageBounds = new(0, 0, pageHostBounds.Width, pageHostBounds.
Height
);
254
bounds.
Height
+ STRIP_HEIGHT + 4 * BUTTON_PAD + BUTTON_HEIGHT +
259
selectorWidth, bounds.
Height
+ STRIP_HEIGHT + 2 * BUTTON_PAD + BUTTON_HEIGHT);
262
bounds.Y = bounds.
Height
+ bounds.Y + BUTTON_PAD;
System\Windows\Forms\Dialogs\CommonDialogs\CommonDialog.cs (1)
99
int y = screen.Y + (screen.
Height
- r.bottom + r.top) / 3;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (3)
161
_windowBounds.
Height
,
201
bounds.Width, bounds.
Height
);
390
_windowBounds.
Height
,
System\Windows\Forms\Form.cs (11)
907
SetDesktopBounds(value.X, value.Y, value.Width, value.
Height
);
1672
&& _restoreBounds.
Height
== -1
3653
cp.Y = Math.Max(clientRect.Y, clientRect.Y + (clientRect.
Height
- cp.Height) / 2);
3678
cp.Y = Math.Max(screenRect.Y, screenRect.Y + (screenRect.
Height
- cp.Height) / 2);
3875
else if (p.Y + s.Height > screenRect.Y + screenRect.
Height
)
3877
p.Y = screenRect.Y + screenRect.
Height
- s.Height;
3915
p.Y = Math.Max(screenRect.Y, screenRect.Y + (screenRect.
Height
- Height) / 2);
4480
_dpiFormSizes.Add(e.DeviceDpiNew, new Size(e.SuggestedRectangle.Width, e.SuggestedRectangle.
Height
));
5012
_formStateEx[s_formStateExWindowBoundsHeightIsClientSize] == 1 ? restoredSize.Height : _restoredWindowBounds.
Height
,
5219
if ((specified & BoundsSpecified.Height) != 0 || _restoreBounds.
Height
== -1)
6821
mmi->ptMaxSize.Y = maximizedBounds.
Height
;
System\Windows\Forms\Input\Cursor.cs (2)
275
imageHeight = imageRect.
Height
;
288
targetHeight = targetRect.
Height
;
System\Windows\Forms\Internal\WinFormsUtils.cs (3)
83
Math.Min(constrainingBounds.
Height
- 2, bounds.
Height
));
105
bounds.Y = constrainingBounds.Bottom - 1 - bounds.
Height
;
System\Windows\Forms\Layout\CommonProperties.cs (3)
208
bounds.Height = Math.Min(bounds.
Height
, value.Height);
232
bounds.Height = Math.Max(bounds.
Height
, value.Height);
293
bool hChangedButNotSpecified = ((specified & BoundsSpecified.Height) == BoundsSpecified.None) & height != originalBounds.
Height
;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
1386
float yScaleFactor = (float)suggestedRectangle.
Height
/ Height;
1422
suggestedRectangle.
Height
,
System\Windows\Forms\Layout\Containers\SplitContainer.cs (4)
718
OnSplitterMoved(new SplitterEventArgs(SplitterRectangle.X + SplitterRectangle.Width / 2, SplitterRectangle.Y + SplitterRectangle.
Height
/ 2, SplitterRectangle.X, SplitterRectangle.Y));
991
SplitterCancelEventArgs se = new(Left + SplitterRectangle.X + SplitterRectangle.Width / 2, Top + SplitterRectangle.Y + SplitterRectangle.
Height
/ 2, xSplit, ySplit);
1478
PInvoke.PatBlt(dc, r.X, r.Y, r.Width, r.
Height
, ROP_CODE.PATINVERT);
2285
return new Rectangle(containerRectangle.X + splitterRectangle.X, containerRectangle.Y + splitterRectangle.Y, splitterRectangle.Width, splitterRectangle.
Height
);
System\Windows\Forms\Layout\DefaultLayout.cs (33)
44
proposedConstraints.Height = bounds.
Height
;
58
if (bounds.Width < prefSize.Width || bounds.
Height
< prefSize.Height)
84
Debug.Assert(CommonProperties.GetAutoSizeMode(element) == AutoSizeMode.GrowAndShrink || (newSize.Height >= oldBounds.
Height
&& newSize.Width >= oldBounds.Width),
96
location.Y -= newSize.Height - oldBounds.
Height
;
173
int height = bounds.
Height
;
213
height = displayRectangle.
Height
- (anchorInfo.Bottom + anchorInfo.Top);
222
anchorInfo.Top = displayRectangle.
Height
- height - anchorInfo.Bottom;
228
int growOrShrink = (displayRectangle.
Height
- (anchorInfo.Bottom + anchorInfo.Top + height)) / 2;
266
bottom += displayRect.
Height
;
270
top += displayRect.
Height
;
275
int center = displayRect.
Height
/ 2;
320
if (bottom < top || cachedBounds.
Height
!= element.Bounds.
Height
|| cachedBounds.Y != element.Bounds.Y)
327
bottom = top + Math.Max(element.Bounds.
Height
, cachedBounds.
Height
) + Math.Abs(bottom);
353
if (CommonProperties.GetAutoSize(container) && ((displayRectangle.Width == 0) || (displayRectangle.
Height
== 0)))
406
remainingBounds.Y += element.Bounds.
Height
;
407
remainingBounds.Height -= element.Bounds.
Height
;
419
remainingBounds.Height -= element.Bounds.
Height
;
490
Math.Max(0, newElementBounds.
Height
- remainingBounds.
Height
));
530
(newElementBounds.
Height
< 0 || element.Bounds.
Height
== newElementBounds.
Height
),
750
int parentHeight = parentDisplayRect.
Height
;
799
anchorInfo.Top = oldAnchorInfo.Bottom - cachedBounds.
Height
;
887
anchorInfo.Bottom = displayRectangle.
Height
- (y + elementBounds.
Height
);
989
heightFactor = ((double)displayRect.
Height
) / anchorInfo.DisplayRectangle.
Height
;
1029
if ((displayRectangle.Width == 0) || (displayRectangle.
Height
== 0))
1172
prefSize.Height = anchorDest.
Height
< 0
1173
? Math.Max(prefSize.Height, elementSpace.Bottom + anchorDest.
Height
)
System\Windows\Forms\Layout\FlowLayout.cs (7)
76
Rectangle measureBounds = new(displayRect.X, displayRect.Y, displayRect.Width, displayRect.
Height
- layoutSize.Height);
187
Size elementConstraints = new(int.MaxValue, rowBounds.
Height
- elementProxy.Margin.Size.Height);
226
Rectangle cellBounds = new(location, new Size(requiredSize.Width, rowBounds.
Height
));
330
Debug.Assert(container.Children[0].Bounds.Y == container.DisplayRectangle.Y + container.DisplayRectangle.
Height
- container.Children[0].Bounds.
Height
- margin.Bottom);
351
Debug.Assert(collection[i].Bounds.Y + collection[i].Bounds.
Height
<= container.DisplayRectangle.Y + container.DisplayRectangle.
Height
);
System\Windows\Forms\Layout\LayoutUtils.cs (6)
326
withinThis.Y += withinThis.
Height
- alignThis.Height;
330
withinThis.Y += (withinThis.
Height
- alignThis.Height) / 2;
342
withinThis.Y += withinThis.
Height
- alignThis.Height;
346
withinThis.Y += (withinThis.
Height
- alignThis.Height) / 2;
490
return (rectangle.Width == 0 || rectangle.
Height
== 0);
524
region1.Y += bounds.
Height
- specifiedContent.Height;
System\Windows\Forms\Layout\TableLayout.cs (3)
1264
cellBounds.Height = Math.Max(cellBounds.
Height
, 1);
1273
elementBounds.Height = Math.Min(cellBounds.
Height
, elementBounds.
Height
);
System\Windows\Forms\MDI\MDIClient.cs (5)
198
int sh = (int)Math.Round((bounds.Y + bounds.
Height
) * dy - sy);
234
int yDelta = oldBounds.
Height
- newBounds.
Height
;
290
using RegionScope rgn1 = new(0, 0, bounds.Width, bounds.
Height
);
295
bounds.
Height
- rect.bottom);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (7)
390
outsideCellBounds.
Height
- (cellBorderWidth + 1) / 2);
436
displayRect.
Height
- cellBorderWidth);
452
tableBounds.Y + tableBounds.
Height
- 1,
454
tableBounds.Y + tableBounds.
Height
- 1);
463
tableBounds.Y + tableBounds.
Height
- 1);
467
tableBounds.Y + tableBounds.
Height
- 1,
469
tableBounds.Y + tableBounds.
Height
- 1);
System\Windows\Forms\Printing\PrintPreviewControl.cs (5)
417
internal double VerticalViewSize => InsideRectangle.
Height
* 100.0 / VirtualSize.Height;
431
rect.Height = Math.Max(0, rect.
Height
- 1);
627
Math.Max(0, (rect.
Height
- _virtualSize.Height) / 2));
818
_vScrollBar.Height = availableRect.
Height
- (horizontalScrollNeeded ? _hScrollBar.Height : 0);
834
displayDimension: availableRect.
Height
,
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
1143
Rectangle rect = new(0, 0, item.Bounds.Width - 1, item.Bounds.
Height
- 1);
System\Windows\Forms\Rendering\ControlPaint.cs (83)
92
if (bounds.
Height
> result.
Height
)
94
result.Y = (bounds.
Height
- result.
Height
) / 2;
101
float yRatio = bounds.
Height
/ (float)imageSize.Height;
112
result.Y = (bounds.
Height
- result.
Height
) / 2;
118
result.Height = bounds.
Height
;
483
partOfImageToDraw.
Height
,
500
partOfImageToDraw.
Height
,
675
leftLineBottoms[leftOffset] = bounds.Y + bounds.
Height
- i - 1;
680
rightLineBottoms[rightOffset] = bounds.Y + bounds.
Height
- i - 1;
686
leftLineBottoms[j] = bounds.Y + bounds.
Height
- i - 1;
691
rightLineBottoms[j] = bounds.Y + bounds.
Height
- i - 1;
698
leftLineBottoms[i] = bounds.Y + bounds.
Height
- 1;
703
rightLineBottoms[i] = bounds.Y + bounds.
Height
- 1;
844
bounds.Y + bounds.
Height
- 1 - i,
846
bounds.Y + bounds.
Height
- 1 - i);
864
bounds.Y + bounds.
Height
- 1 - i,
866
bounds.Y + bounds.
Height
- 1 - i);
890
bounds.Y + bounds.
Height
- 1 - i,
892
bounds.Y + bounds.
Height
- 1 - i);
979
rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
,
989
rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
,
998
=> DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, style, sides);
1067
graphics.DrawLine(darkPen, bounds.X, bounds.Y, bounds.X, bounds.Y + bounds.
Height
- 1);
1073
bounds.X, bounds.Y + bounds.
Height
- 1, bounds.X + bounds.Width - 1, bounds.Y + bounds.
Height
- 1);
1076
bounds.X + bounds.Width - 1, bounds.Y, bounds.X + bounds.Width - 1, bounds.Y + bounds.
Height
- 1);
1081
graphics.DrawLine(mediumPen, bounds.X + 1, bounds.Y + 1, bounds.X + 1, bounds.Y + bounds.
Height
- 2);
1089
bounds.X + 1, bounds.Y + bounds.
Height
- 2, bounds.X + bounds.Width - 2, bounds.Y + bounds.
Height
- 2);
1092
bounds.X + bounds.Width - 2, bounds.Y + 1, bounds.X + bounds.Width - 2, bounds.Y + bounds.
Height
- 2);
1106
graphics.DrawLine(lightPen, bounds.X, bounds.Y, bounds.X, bounds.Y + bounds.
Height
- 1);
1113
bounds.X, bounds.Y + bounds.
Height
- 1, bounds.X + bounds.Width - 1, bounds.Y + bounds.
Height
- 1);
1116
bounds.X + bounds.Width - 1, bounds.Y, bounds.X + bounds.Width - 1, bounds.Y + bounds.
Height
- 1);
1126
graphics.DrawLine(topLeftPen, bounds.X + 1, bounds.Y + 1, bounds.X + 1, bounds.Y + bounds.
Height
- 2);
1133
bounds.X + 1, bounds.Y + bounds.
Height
- 2, bounds.X + bounds.Width - 2, bounds.Y + bounds.
Height
- 2);
1136
bounds.X + bounds.Width - 2, bounds.Y + 1, bounds.X + bounds.Width - 2, bounds.Y + bounds.
Height
- 2);
1151
bounds = new Rectangle(bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
1180
=> DrawButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1205
rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
,
1228
=> DrawCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1256
=> DrawComboButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1280
graphics.FillRectangle(brush, bounds.Left + 1, bounds.Top + 1, bounds.Width - 2, bounds.
Height
- 2);
1289
int midy = bounds.Y + bounds.
Height
/ 2;
1345
if (rectangle.Width < 0 || rectangle.
Height
< 0)
1352
rectangle.
Height
- 2);
1360
if (t_checkImage is null || t_checkImage.Width != rectangle.Width || t_checkImage.Height != rectangle.
Height
)
1370
Bitmap bitmap = new(rectangle.Width, rectangle.
Height
);
1390
graphics.DrawRectangle(pen, offsetRectangle.X, offsetRectangle.Y, offsetRectangle.Width - 1, offsetRectangle.
Height
- 1);
1499
rectangle.
Height
- 1);
1676
Point end = new(bounds.X + bounds.Width - 1, bounds.Y + bounds.
Height
);
1689
graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.
Height
- 1);
1691
graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.
Height
- 1);
1695
graphics.DrawRectangle(pen, rectangle.X, rectangle.Y, rectangle.Width - 1, rectangle.
Height
- 1);
1702
=> DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, glyph);
1715
rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
,
1747
=> DrawMixedCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1764
=> DrawRadioButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1846
=> DrawScrollButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, button, state);
1888
=> DrawSizeGrip(graphics, backColor, bounds.X, bounds.Y, bounds.Width, bounds.
Height
);
2053
PInvoke.PatBlt(desktopDC, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, rop3);
2369
g.DrawLine(SystemPens.Window, bound.X, bound.Y, bound.X, bound.Y + bound.
Height
- 1);
2370
g.DrawLine(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.
Height
- 1);
2371
g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y + bound.
Height
- 1, bound.X + bound.Width - 1, bound.Y + bound.
Height
- 1);
2378
bound = new Rectangle(bound.X + 1, bound.Y + 1, bound.Width - 1, bound.
Height
- 1);
2380
g.DrawLine(SystemPens.Window, bound.X, bound.Y, bound.X, bound.Y + bound.
Height
- 1);
2382
g.DrawLine(SystemPens.ControlDark, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.
Height
- 1);
2383
g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y + bound.
Height
- 1, bound.X + bound.Width - 1, bound.Y + bound.
Height
- 1);
2388
g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.
Height
- 1);
2389
g.DrawLine(SystemPens.Window, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.
Height
- 1);
2390
g.DrawLine(SystemPens.Window, bound.X, bound.Y + bound.
Height
- 1, bound.X + bound.Width - 1, bound.Y + bound.
Height
- 1);
2398
bound = new Rectangle(bound.X + 1, bound.Y + 1, bound.Width - 1, bound.
Height
- 1);
2400
g.DrawLine(SystemPens.ControlDark, bound.X, bound.Y, bound.X, bound.Y + bound.
Height
- 1);
2401
g.DrawLine(SystemPens.Window, bound.X + bound.Width - 1, bound.Y, bound.X + bound.Width - 1, bound.Y + bound.
Height
- 1);
2402
g.DrawLine(SystemPens.Window, bound.X, bound.Y + bound.
Height
- 1, bound.X + bound.Width - 1, bound.Y + bound.
Height
- 1);
System\Windows\Forms\Rendering\TextExtensions.cs (3)
91
if (bounds.
Height
== int.MaxValue)
175
if (textHeight > bounds.
Height
)
185
adjustedBounds.Y = adjustedBounds.Top + adjustedBounds.
Height
/ 2 - textHeight / 2;
System\Windows\Forms\Scrolling\ScrollableControl.cs (24)
206
rect.Height = _displayRect.
Height
;
224
displayRectangle.Height = Math.Max(displayRectangle.
Height
, AutoScrollMinSize.Height);
293
display.Height = client.
Height
;
333
int maxY = minClient.
Height
;
462
int ctlBottom = -display.Y + bounds.Y + bounds.
Height
+ _scrollMargin.Height;
495
if (maxY <= fullClient.
Height
)
511
if (needHscroll && maxY > clientToBe.
Height
)
528
maxY = clientToBe.
Height
;
560
_displayRect = new Rectangle(_displayRect.X, _displayRect.Y, HorizontalScroll.Maximum, _displayRect.
Height
);
618
int maxPos = -(client.
Height
- _displayRect.
Height
);
756
int minY = Math.Min(client.
Height
- displayRectangle.
Height
, 0);
835
&& (client.Width > 0 && client.
Height
> 0))
889
else if (bounds.Y + bounds.
Height
+ yMargin > client.
Height
)
891
yCalc = client.
Height
- (bounds.Y + bounds.
Height
+ yMargin - _displayRect.Y);
1049
if (_displayRect.Width != width || _displayRect.
Height
!= height)
1057
int minY = ClientRectangle.
Height
- height;
1188
VerticalScroll._maximum = displayRect.
Height
- 1;
1193
VerticalScroll._largeChange = ClientRectangle.
Height
;
1271
int maxPos = -(client.
Height
- _displayRect.
Height
);
System\Windows\Forms\Scrolling\VScrollProperties.cs (1)
15
private protected override int GetPageSize(ScrollableControl parent) => parent.ClientRectangle.
Height
;
System\Windows\Forms\ToolTip\ToolTip.cs (5)
1551
int centeredY = toolRectangle.Top + toolRectangle.
Height
/ 2 - height / 2; // tooltip will be aligned with tool horizontally
1575
locationWeights[i] += Math.Abs((long)intersection.Width * intersection.
Height
); // Intersection is a weight
1589
* (Math.Abs((long)possibleLocations[i].
Height
) - Math.Abs((long)locationAreaWithinScreen.
Height
));
1603
locationWithinTopControlAreas[i] = Math.Abs((long)locationWithinTopControlRectangle.
Height
* locationWithinTopControlRectangle.Width);
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (10)
221
if (bounds.Width < 0 || bounds.
Height
< 0)
250
if (bounds.Width < 0 || bounds.
Height
< 0 || clipRectangle.Width < 0 || clipRectangle.
Height
< 0)
304
if (bounds.Width < 0 || bounds.
Height
< 0)
322
if (bounds.Width < 0 || bounds.
Height
< 0)
340
if (bounds.Width < 0 || bounds.
Height
< 0)
381
if (bounds.Width < 0 || bounds.
Height
< 0)
415
if (bounds.Width < 0 || bounds.
Height
< 0)
431
if (contentBounds.Width < 0 || contentBounds.
Height
< 0)
450
if (bounds.Width < 0 || bounds.
Height
< 0)
System.Windows.Forms.Design (108)
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (2)
598
Rectangle baseVar = new(e.Bounds.X + offset, e.Bounds.Y + 1, PaintWidth, e.Bounds.
Height
- 3);
599
g.DrawRectangle(SystemPens.ControlText, baseVar.X, baseVar.Y, baseVar.Width - 1, baseVar.
Height
- 1);
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
201
_dropDownRectangle = new Rectangle(bounds.Right - PushButtonWidth - 1, 4, PushButtonWidth, bounds.
Height
- 8);
246
Convert.ToInt32(dropDownRect.Top + dropDownRect.
Height
/ 2));
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (4)
353
if (rectScreen.Bottom < (dropDownSize.Height + editorLocation.Y + editorBounds.
Height
))
359
editorLocation.Y += editorBounds.
Height
;
377
if (rectScreen.Bottom < (dropDownSize.Height + editorLocation.Y + editorBounds.
Height
))
383
editorLocation.Y += editorBounds.
Height
;
System\ComponentModel\Design\DesignerActionUI.cs (1)
616
if ((new Rectangle(glyphCoord, new Size(currentGlyph.Bounds.Width, currentGlyph.Bounds.
Height
))).Contains(point))
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
242
Math.Min(Font.Height * 10, workingArea.
Height
/ 3));
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
43
return new Rectangle(pt.X, pt.Y, rect.Width, rect.
Height
);
System\Drawing\Design\ColorEditor.ColorUI.cs (4)
89
Size = new Size(size.Width + 2 * CMARGIN, size.Height + 2 * CMARGIN + rectItemSize.
Height
);
275
_editor.PaintValue(value, graphics, new Rectangle(die.Bounds.X + 2, die.Bounds.Y + 2, 22, die.Bounds.
Height
- 4));
276
graphics.DrawRectangle(SystemPens.WindowText, new Rectangle(die.Bounds.X + 2, die.Bounds.Y + 2, 22 - 1, die.Bounds.
Height
- 4 - 1));
316
_pal.Size.Height - rectItemSize.
Height
+ 2 * CMARGIN);
System\Drawing\Design\CursorEditor.CursorUI.cs (4)
69
e.Graphics.FillRectangle(SystemBrushes.Control, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, 32, e.Bounds.
Height
- 4));
70
e.Graphics.DrawRectangle(SystemPens.WindowText, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, 32 - 1, e.Bounds.
Height
- 4 - 1));
72
cursor.DrawStretched(e.Graphics, new Rectangle(e.Bounds.X + 2, e.Bounds.Y + 2, 32, e.Bounds.
Height
- 4));
73
e.Graphics.DrawString(text, font, brushText, e.Bounds.X + 36, e.Bounds.Y + (e.Bounds.
Height
- font.Height) / 2);
System\Drawing\Design\FontNameEditor.cs (1)
71
float fontSize = e.Bounds.
Height
/ ScaleFactor;
System\Drawing\Design\IconEditor.cs (2)
126
if (icon.Height < rectangle.
Height
)
128
rectangle.Y += (rectangle.
Height
- icon.Height) / 2;
System\Windows\Forms\Design\AnchorEditor.AnchorUI.cs (1)
271
e.Graphics.DrawRectangle(SystemPens.WindowFrame, rc.X, rc.Y, rc.Width - 1, rc.
Height
- 1);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (4)
535
Rectangle clipBounds = new(0, 0, rootControl.ClientRectangle.Width, rootControl.ClientRectangle.
Height
);
1006
if (bounds.Top + bounds.
Height
< dragBounds.Top)
1011
else if (dragBounds.Top + dragBounds.
Height
< bounds.Top)
1144
Rectangle tempDragRect = new(dragBounds.Left + snapPoint.X, dragBounds.Top + snapPoint.Y, dragBounds.Width, dragBounds.
Height
);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (1)
1013
int imageHeight = _dragImageRect.
Height
;
System\Windows\Forms\Design\Behavior\GrabHandleGlyph.cs (4)
80
if (controlBounds.
Height
>= (2 * DesignerUtils.s_handleOverlap) + (2 * DesignerUtils.s_handleSize))
82
bounds = new Rectangle(controlBounds.X + DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, controlBounds.Y + (controlBounds.
Height
/ 2) - (DesignerUtils.s_handleSize / 2), DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
92
if (controlBounds.
Height
>= (2 * DesignerUtils.s_handleOverlap) + (2 * DesignerUtils.s_handleSize))
94
bounds = new Rectangle(controlBounds.Right - DesignerUtils.s_handleOverlap, controlBounds.Y + (controlBounds.
Height
/ 2) - (DesignerUtils.s_handleSize / 2), DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (10)
150
rect.Height = Math.Max(rect.
Height
, _parentGridSize.Height);
619
_resizeComponents[0].resizeBounds.Width, _resizeComponents[0].resizeBounds.
Height
);
679
bounds.Height = Math.Max(minHeight, baseBounds.
Height
+ pixelHeight);
697
bounds.Height = Math.Max(minHeight, baseBounds.
Height
+ yOffset);
698
if ((bounds.
Height
!= minHeight) ||
699
((bounds.
Height
== minHeight) && (oldBounds.
Height
!= minHeight)))
773
propHeight.SetValue(_resizeComponents[i].resizeControl, bounds.
Height
);
793
control.SetBounds(bounds.X, bounds.Y, bounds.Width, bounds.
Height
, specified);
935
if (propHeight is not null && _resizeComponents[i].resizeControl.Height != _resizeComponents[i].resizeBounds.
Height
)
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (6)
111
_glyphBounds = new Rectangle(bounds.X + x, bounds.Y + bounds.
Height
, _imageWidth, _imageHeight);
126
y = (bounds.
Height
- _imageWidth) / 2;
135
y = (bounds.
Height
- _imageWidth) / 2;
160
_glyphBounds = new Rectangle(bounds.X + x, bounds.Y + bounds.
Height
, _imageWidth, _imageHeight);
175
y = (bounds.
Height
- _imageWidth) / 2;
184
y = (bounds.
Height
- _imageWidth) / 2;
System\Windows\Forms\Design\ComponentTray.cs (2)
1866
newLoc.Y += bounds.
Height
+ _whiteSpace.Y;
2301
int y = rc.Y + (rc.
Height
- _cyIcon) / 2;
System\Windows\Forms\Design\ControlCommandSet.cs (1)
730
moveOffsetY = newRect.
Height
- primaryControl.Height;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
1004
int textWidth = Size.Ceiling(e.Graphics.MeasureString(columnName, e.Font!, new SizeF(bounds.Width, bounds.
Height
))).Width;
1006
Rectangle focusRectangle = new(bounds.X, e.Bounds.Y + 1, textWidth + OWNERDRAWHORIZONTALBUFFER, e.Bounds.
Height
- 2);
1021
e.Graphics.FillRectangle(backBrush, new Rectangle(focusRectangle.Right + 1, e.Bounds.Y, e.Bounds.Width - focusRectangle.Right - 1, e.Bounds.
Height
));
1025
e.Graphics.FillRectangle(backBrush, new Rectangle(bounds.X, e.Bounds.Y, e.Bounds.Width - bounds.X, e.Bounds.
Height
));
System\Windows\Forms\Design\DesignerUtils.cs (4)
464
SelectionBorderGlyphType.Left => new Rectangle(originalBounds.Left - borderSize, originalBounds.Top - borderSize, borderSize, originalBounds.
Height
+ 2 * borderSize),
465
SelectionBorderGlyphType.Right => new Rectangle(originalBounds.Right, originalBounds.Top - borderSize, borderSize, originalBounds.
Height
+ 2 * borderSize),
549
return face.Top + (face.
Height
/ 2) - (fontHeight / 2) + fontAscent;
578
newBounds.Y = originalBounds.Y - originalBounds.
Height
+ e.Offset.Y;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
156
bounds.
Height
+ margin.Vertical);
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
415
if (rectangle.
Height
== 0)
System\Windows\Forms\Design\ParentControlDesigner.cs (15)
567
prop?.SetValue(newChild, new Size(bounds.Width, bounds.
Height
));
812
CreateToolCore(tool, bounds.X, bounds.Y, bounds.Width, bounds.
Height
, true, true);
1096
adjustedRect.Height = dragRect.
Height
;
1173
updatedRect.Height = ((dragRect.Y + dragRect.
Height
) / gridSize.Height) * gridSize.Height - updatedRect.Y;
1179
if (updatedRect.
Height
< gridSize.Height)
1785
offset.Width, offset.
Height
);
1825
_statusCommandUI?.SetStatusInformation(new Rectangle(location.X, location.Y, offset.Width, offset.
Height
));
1867
if (offset.
Height
< minControlSize.Height)
1953
if (_mouseDragOffset.
Height
< 0)
1955
_mouseDragOffset.Y += _mouseDragOffset.
Height
;
1956
_mouseDragOffset.Height = -_mouseDragOffset.
Height
;
1977
_mouseDragOffset.Width, _mouseDragOffset.
Height
);
2016
_statusCommandUI?.SetStatusInformation(new Rectangle(offset.X, offset.Y, _mouseDragOffset.Width, _mouseDragOffset.
Height
));
2035
Math.Max(displayRect.
Height
, clientRect.
Height
));
System\Windows\Forms\Design\SelectionUIHandler.cs (7)
77
containerRect.Height = screen.
Height
;
239
if (finalMove && offset is { X: 0, Y: 0, Width: 0,
Height
: 0 })
291
ctlBounds.lastRequestedHeight += offset.
Height
;
362
newBounds.Height = tempNewBounds.
Height
;
367
newBounds.Height = tempNewBounds.
Height
;
383
bool sizeChanged = (offset.Width != 0 || offset.
Height
!= 0);
484
Size size = new(Math.Max(MinControlWidth, newBounds.Width), Math.Max(MinControlHeight, newBounds.
Height
));
System\Windows\Forms\Design\SelectionUIService.cs (2)
695
delta.Height -= old.
Height
;
696
if (delta.X != 0 || delta.Y != 0 || delta.Width != 0 || delta.
Height
!= 0)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (15)
160
rect.Y = inner.Y + inner.
Height
;
173
rect.Y = inner.Y + (inner.
Height
- GRABHANDLE_HEIGHT) / 2;
255
if (pt.Y >= _innerRect.Y + _innerRect.
Height
&& pt.Y <= _outerRect.Y + _outerRect.
Height
)
260
if (pt.Y >= _outerRect.Y + (_outerRect.
Height
- GRABHANDLE_HEIGHT) / 2
261
&& pt.Y <= _outerRect.Y + (_outerRect.
Height
+ GRABHANDLE_HEIGHT) / 2)
291
if (pt.Y >= _innerRect.Y + _innerRect.
Height
&& pt.Y <= _outerRect.Y + _outerRect.
Height
)
296
if (pt.Y >= _outerRect.Y + (_outerRect.
Height
- GRABHANDLE_HEIGHT) / 2
297
&& pt.Y <= _outerRect.Y + (_outerRect.
Height
+ GRABHANDLE_HEIGHT) / 2)
305
if (pt.Y >= _innerRect.Y + _innerRect.
Height
&& pt.Y <= _outerRect.Y + _outerRect.
Height
)
395
if (pt.Y < _outerRect.Y || pt.Y > _outerRect.Y + _outerRect.
Height
)
403
&& pt.Y < _innerRect.Y + _innerRect.
Height
)
514
Rectangle rcOuterNew = new(_innerRect.X - GRABHANDLE_WIDTH, _innerRect.Y - GRABHANDLE_HEIGHT, _innerRect.Width + 2 * GRABHANDLE_WIDTH, _innerRect.
Height
+ 2 * GRABHANDLE_HEIGHT);
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
193
int watermarkY = rectangle.
Height
/ 2;
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
1109
Rectangle gBounds = new(startLoc - halfSize, checkBounds.Top, DesignerUtils.s_resizeGlyphSize, checkBounds.
Height
);
System\Windows\Forms\Design\TabOrder.cs (1)
286
graphics.DrawRectangle(pen, convertedRectangle.X, convertedRectangle.Y, convertedRectangle.Width - 1, convertedRectangle.
Height
- 1);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1181
if (_toolStripAdornerWindowService is not null && (dropDown.Width < _dropDownSizeToInvalidate.Width || dropDown.Size.Height < _dropDownSizeToInvalidate.
Height
))
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
1350
_contextMenu.Show(translatedBounds.X, translatedBounds.Y + translatedBounds.
Height
);
1873
Rectangle drawRect = new(bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
1887
Rectangle drawRect = new(bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
2032
Rectangle drawRect = new(bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
System.Windows.Forms.Primitives (5)
System\Windows\Forms\Automation\UiaTextProvider.cs (2)
95
result[scan++] = rectArray[i].
Height
;
113
result[3] = bounds.
Height
;
System\Windows\Forms\Automation\UiaTextRange.cs (3)
398
Rectangle rectangle = new(startPoint.X, startPoint.Y + 2, endPoint.X - startPoint.X, clippingRectangle.
Height
);
401
if (rectangle.Width > 0 && rectangle.
Height
> 0)
866
if (rect.Width > 0 && rect.
Height
> 0)
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (2)
716
.Returns((Rectangle rect) => new Rectangle(rect.X + 27, rect.Y + 128, rect.Width, rect.
Height
));
798
.Returns((Rectangle rect) => new Rectangle(rect.X + 27, rect.Y + 128, rect.Width, rect.
Height
));
System.Windows.Forms.Tests (171)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (6)
635
Assert.Equal(0, accessibleObject.Bounds.
Height
);
701
Assert.Equal(0, accessibleObject.Bounds.
Height
);
720
Assert.Equal(0, accessibleObject.Bounds.
Height
);
739
Assert.Equal(0, accessibleObject.Bounds.
Height
);
2627
point.Offset(bounds.Width / 2, bounds.
Height
/ 2);
2658
point.Offset(bounds.Width / 2, bounds.
Height
/ 2);
System\Windows\Forms\AccessibleObjects\CheckedListBoxAccessibleObjectTests.cs (2)
27
int listBoxHeight = checkedListBox.AccessibilityObject.Bounds.
Height
;
33
sumItemsHeight += item.Bounds.
Height
;
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (2)
320
int visibleItemsCount = (int)Math.Ceiling((double)dropDownRect.
Height
/ comboBox.ItemHeight);
415
Assert.Equal(15, actual.
Height
); // All items are the same height
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
57
Assert.Equal(0, accessibleObject.Bounds.
Height
);
92
Assert.Equal(0, accessibleObject.Bounds.
Height
);
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (2)
154
int actualHeight = accessibleObject.Bounds.
Height
;
176
int actualHeight = accessibleObject.Bounds.
Height
;
System\Windows\Forms\AccessibleObjects\ListViewGroup.ListViewGroupAccessibleObjectTests.cs (2)
301
int actualHeight = group1AccObj.Bounds.
Height
;
339
int actualHeight = groupAccObj.Bounds.
Height
;
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (2)
659
int actualHeight = accessibleObject.Bounds.
Height
;
660
int expectedHeight = subItem.Bounds.
Height
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (1)
38
Assert.Equal(135, bounds.
Height
);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (1)
34
Assert.Equal(106, accessibleObject.Bounds.
Height
);
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (2)
284
Assert.Equal(boundingRectangle.
Height
, expected.
Height
+ horizontalScrollBarHeight);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (2)
255
bool visible = rect.
Height
> 0 &&
268
visible = rect.
Height
> 0 &&
System\Windows\Forms\AccessibleObjects\TabPage.TabPageAccessibleObjectTests.cs (2)
556
Assert.Equal(boundingRectangle.
Height
, expected.
Height
+ horizontalScrollBarHeight);
System\Windows\Forms\AccessibleObjects\ToolStripControlHost.ToolStripHostedControlAccessibleObjectTests.cs (1)
31
(bool)accessibleObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_IsOffscreenPropertyId) || (accessibleObject.Bounds.Width > 0 && accessibleObject.Bounds.
Height
> 0);
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (1)
123
(toolStripItemAccessibleObject.Bounds.Width > 0 && toolStripItemAccessibleObject.Bounds.
Height
> 0));
System\Windows\Forms\ControlPaintTests.cs (26)
767
ControlPaint.DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
);
770
ControlPaint.DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
);
779
ControlPaint.DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, style);
782
ControlPaint.DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, style);
791
ControlPaint.DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, style, side);
794
ControlPaint.DrawBorder3D(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, style, side);
839
ControlPaint.DrawButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
842
ControlPaint.DrawButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
923
ControlPaint.DrawCaptionButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, button, state);
926
ControlPaint.DrawCaptionButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, button, state);
1003
ControlPaint.DrawCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1006
ControlPaint.DrawCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1084
ControlPaint.DrawComboButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1087
ControlPaint.DrawComboButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1446
ControlPaint.DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, glyph);
1449
ControlPaint.DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, glyph);
1458
ControlPaint.DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, glyph, foreColor, backColor);
1461
ControlPaint.DrawMenuGlyph(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, glyph, foreColor, backColor);
1545
ControlPaint.DrawMixedCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1548
ControlPaint.DrawMixedCheckBox(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1625
ControlPaint.DrawRadioButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1628
ControlPaint.DrawRadioButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, state);
1763
ControlPaint.DrawScrollButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, button, state);
1766
ControlPaint.DrawScrollButton(graphics, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
, button, state);
1883
ControlPaint.DrawSizeGrip(graphics, backColor, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
);
1886
ControlPaint.DrawSizeGrip(graphics, backColor, rectangle.X, rectangle.Y, rectangle.Width, rectangle.
Height
);
System\Windows\Forms\ControlTests.Methods.cs (6)
10403
Assert.True(control.ClientRectangle.
Height
>= 0);
10407
Assert.True(control.DisplayRectangle.
Height
>= 0);
10419
Assert.True(control.Bounds.
Height
>= 0);
10436
Assert.True(control.ClientRectangle.
Height
>= 0);
10440
Assert.True(control.DisplayRectangle.
Height
>= 0);
10452
Assert.True(control.Bounds.
Height
>= 0);
System\Windows\Forms\CursorTests.cs (2)
185
Assert.True(clip.
Height
>= 0);
205
Assert.True(Cursor.Clip.
Height
>= 0);
System\Windows\Forms\DataGridViewCellTests.cs (5)
3228
Assert.Equal(new Rectangle(expected.X, expected.Y, expected.Width, expected.
Height
+ 10), cell.BorderWidths(advancedBorderStyle));
3241
Assert.Equal(new Rectangle(expected.X, expected.Y, expected.Width + 10, expected.
Height
), cell.BorderWidths(advancedBorderStyle));
3259
Assert.Equal(new Rectangle(expected.X, expected.Y, expected.Width + 10, expected.
Height
+ 11), cell.BorderWidths(advancedBorderStyle));
3280
Assert.Equal(new Rectangle(expected.X + 10, expected.Y, expected.Width, expected.
Height
+ 11), cell.BorderWidths(advancedBorderStyle));
3296
Assert.Equal(new Rectangle(expected.X, expected.Y, expected.Width + 10, expected.
Height
), cell.BorderWidths(advancedBorderStyle));
System\Windows\Forms\FormTests.cs (1)
81
Assert.True(control.DisplayRectangle.
Height
> 0);
System\Windows\Forms\HScrollBarTests.cs (3)
31
Assert.True(control.Bounds.
Height
> 0);
42
Assert.True(control.ClientRectangle.
Height
> 0);
64
Assert.True(control.DisplayRectangle.
Height
> 0);
System\Windows\Forms\ListBoxTests.cs (6)
5334
Assert.True(rect1.
Height
> 0);
5340
Assert.True(rect2.Y >= rect1.Y + rect1.
Height
);
5342
Assert.True(rect2.
Height
> 0);
5364
Assert.True(rect1.
Height
> 0);
5373
Assert.True(rect2.Y >= rect1.Y + rect1.
Height
);
5375
Assert.True(rect2.
Height
> 0);
System\Windows\Forms\ListViewTests.cs (4)
4093
Assert.True(rect1.
Height
> 0);
4100
Assert.True(rect2.
Height
> 0);
4124
Assert.True(rect1.
Height
> 0);
4134
Assert.True(rect2.
Height
> 0);
System\Windows\Forms\MonthCalendarTests.cs (3)
40
Assert.True(control.Bounds.
Height
> 0);
53
Assert.True(control.ClientRectangle.
Height
> 0);
73
Assert.True(control.DisplayRectangle.
Height
> 0);
System\Windows\Forms\ScreenTests.cs (3)
210
Assert.NotEqual(0, screen.Bounds.
Height
);
214
Assert.InRange(screen.WorkingArea.
Height
, 0, screen.Bounds.
Height
);
System\Windows\Forms\ScrollBarTests.cs (8)
2940
Assert.True(HFirstPageButton(hScrollBar).Bounds.
Height
> 0);
2953
Assert.True(HFirstPageButton(hScrollBar).Bounds.Width == 0 || HFirstPageButton(hScrollBar).Bounds.
Height
== 0);
2984
Assert.True(HLastPageButton(hScrollBar).Bounds.
Height
> 0);
2997
Assert.True(HLastPageButton(hScrollBar).Bounds.Width == 0 || HLastPageButton(hScrollBar).Bounds.
Height
== 0);
3027
Assert.True(VFirstPageButton(vScrollBar).Bounds.Width == 0 || VFirstPageButton(vScrollBar).Bounds.
Height
== 0);
3041
Assert.True(VLastPageButton(vScrollBar).Bounds.
Height
> 0);
3054
Assert.True(VLastPageButton(vScrollBar).Bounds.Width == 0 || VLastPageButton(vScrollBar).Bounds.
Height
== 0);
3085
Assert.True(VFirstPageButton(vScrollBar).Bounds.
Height
> 0);
System\Windows\Forms\SplitterTests.cs (1)
1422
Assert.Equal(control.Top + control.Bounds.
Height
/ 2, e.SplitY);
System\Windows\Forms\StatusStripTests.Rendering.cs (1)
36
Rectangle bitBltBounds = new(bounds.X, 0, bounds.Width - 1, bounds.
Height
- 1);
System\Windows\Forms\SystemInformationTests.cs (2)
793
Assert.NotEqual(0, screen.
Height
);
804
Assert.True(workingArea.
Height
> 0);
System\Windows\Forms\TabControlTests.cs (7)
746
Assert.Equal(100 - displayRectangle.Y * 2, control.DisplayRectangle.
Height
);
767
Assert.Equal(100 - displayRectangle.Y * 2, control.DisplayRectangle.
Height
);
786
Assert.Equal(100 - displayRectangle.Y * 2, control.DisplayRectangle.
Height
);
3663
Assert.True(rect1.
Height
> 0);
3671
Assert.True(rect2.
Height
> 0);
3695
Assert.True(rect1.
Height
> 0);
3703
Assert.True(rect2.
Height
> 0);
System\Windows\Forms\TabPageTests.cs (16)
2214
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.
Height
), control.ClientRectangle);
2215
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.
Height
), control.DisplayRectangle);
2221
Assert.Equal(expected.Y + expected.
Height
, control.Bottom);
2223
Assert.Equal(expected.
Height
, control.Height);
2244
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.
Height
), control.ClientRectangle);
2245
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.
Height
), control.DisplayRectangle);
2251
Assert.Equal(expected.Y + expected.
Height
, control.Bottom);
2253
Assert.Equal(expected.
Height
, control.Height);
4816
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.
Height
), control.ClientRectangle);
4817
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.
Height
), control.DisplayRectangle);
4823
Assert.Equal(expected.Y + expected.
Height
, control.Bottom);
4825
Assert.Equal(expected.
Height
, control.Height);
4846
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.
Height
), control.ClientRectangle);
4847
Assert.Equal(new Rectangle(0, 0, expected.Width, expected.
Height
), control.DisplayRectangle);
4853
Assert.Equal(expected.Y + expected.
Height
, control.Bottom);
4855
Assert.Equal(expected.
Height
, control.Height);
System\Windows\Forms\TextBoxRendererTests.cs (3)
44
? Validate.Polygon16(new(new(1, 1), new(bounds.Width - 2, bounds.
Height
- 2)))
74
? Validate.Polygon16(new(new(1, 1), new(bounds.Width - 2, bounds.
Height
- 2)))
110
? Validate.Polygon16(new(new(1, 1), new(bounds.Width - 2, bounds.
Height
- 2)))
System\Windows\Forms\ToolStripButtonTests.cs (4)
1305
Assert.Equal(0, e.ImageRectangle.
Height
);
1323
Assert.True(e.TextRectangle.
Height
>= 0);
1396
Assert.Equal(0, e.ImageRectangle.
Height
);
1414
Assert.True(e.TextRectangle.
Height
>= 0);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
4893
items[i].SetBounds(0, items[i - 1].Bounds.Bottom + 1, items[i].Bounds.Width, items[i].Bounds.
Height
);
System\Windows\Forms\ToolStripItemTests.cs (10)
14562
Assert.Equal(bounds.
Height
, item.Height);
14570
Assert.Equal(bounds.
Height
, item.Height);
14600
Assert.Equal(bounds.
Height
, item.Height);
14610
Assert.Equal(bounds.
Height
, item.Height);
14654
Assert.Equal(bounds.
Height
, item.Height);
14667
Assert.Equal(bounds.
Height
, item.Height);
14728
Assert.Equal(bounds.
Height
, item.Height);
14738
Assert.Equal(bounds.
Height
, item.Height);
14789
Assert.Equal(bounds.
Height
, item.Height);
14802
Assert.Equal(bounds.
Height
, item.Height);
System\Windows\Forms\ToolStripSeparatorTests.cs (14)
1382
Assert.Equal(bounds.
Height
, item.Height);
1390
Assert.Equal(bounds.
Height
, item.Height);
1420
Assert.Equal(bounds.
Height
, item.Height);
1430
Assert.Equal(bounds.
Height
, item.Height);
1479
Assert.Equal(new Rectangle(2, bounds.Y, 57, bounds.
Height
), item.Bounds);
1480
Assert.Equal(new Size(57, bounds.
Height
), item.Size);
1482
Assert.Equal(bounds.
Height
, item.Height);
1489
Assert.Equal(new Rectangle(2, bounds.Y, 57, bounds.
Height
), item.Bounds);
1490
Assert.Equal(new Size(57, bounds.
Height
), item.Size);
1492
Assert.Equal(bounds.
Height
, item.Height);
1550
Assert.Equal(bounds.
Height
, item.Height);
1560
Assert.Equal(bounds.
Height
, item.Height);
1604
Assert.Equal(bounds.
Height
, item.Height);
1614
Assert.Equal(bounds.
Height
, item.Height);
System\Windows\Forms\ToolStripTests.cs (2)
103
Assert.Equal(25, control.GripRectangle.
Height
);
257
Assert.Equal(25, control.GripRectangle.
Height
);
System\Windows\Forms\ToolStripTests.Rendering.cs (9)
33
Rectangle bitBltBounds = new(bounds.X, bounds.Y, bounds.Width - 1, bounds.
Height
- 1);
39
new(0, bounds.
Height
- 2, 1, bounds.
Height
- 1),
40
new(bounds.Width - 1, bounds.
Height
- 2, bounds.Width, bounds.
Height
- 1),
41
new(0, bounds.
Height
- 1, 2, bounds.
Height
),
42
new(bounds.Width - 2, bounds.
Height
- 1, bounds.Width, bounds.
Height
)
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
23
Assert.True(treeNode.Bounds.
Height
> 0);
System\Windows\Forms\TreeNodeTests.cs (2)
460
Assert.True(bounds.
Height
> 0);
482
Assert.True(bounds.
Height
> 0);
System\Windows\Forms\VScrollBarTests.cs (3)
30
Assert.True(control.Bounds.
Height
> 0);
41
Assert.True(control.ClientRectangle.
Height
> 0);
63
Assert.True(control.DisplayRectangle.
Height
> 0);
System.Windows.Forms.UI.IntegrationTests (29)
AnchorLayoutTests.cs (4)
223
button.SetBounds(bounds.X + 5, bounds.Y + 5, bounds.Width + 10, bounds.
Height
+ 10, BoundsSpecified.None);
226
button.SetBounds(bounds.X + 5, bounds.Y + 5, bounds.Width + 10, bounds.
Height
+ 10, BoundsSpecified.All);
230
button.SetBounds(bounds.X + 5, bounds.Y + 5, bounds.Width + 10, bounds.
Height
+ 10);
253
Assert.Equal(expectedHeight, newButtonBounds.
Height
);
ButtonTests.cs (9)
120
Point mouseDragHandleOnForm = new(form.DisplayRectangle.Right, form.DisplayRectangle.Top + form.DisplayRectangle.
Height
/ 2);
131
Assert.Equal(originalFormSize.Height, form.DisplayRectangle.
Height
);
151
.MoveMouseBy(0, form.DisplayRectangle.
Height
)
154
Assert.True(form.DisplayRectangle.
Height
> originalFormSize.Height);
170
Point mouseDragHandleOnForm = new(form.DisplayRectangle.Right, form.DisplayRectangle.Top + form.DisplayRectangle.
Height
/ 2);
181
Assert.Equal(originalFormSize.Height, form.DisplayRectangle.
Height
);
207
.MoveMouseBy(0, form.DisplayRectangle.
Height
)
210
Assert.True(form.DisplayRectangle.
Height
> originalFormSize.Height);
216
Assert.Equal(originalFormSize.Height - originalButtonPosition.Bottom, form.DisplayRectangle.
Height
- button.DisplayRectangle.Bottom);
Dpi\FormDpiTests.cs (2)
42
Assert.NotEqual(initialBounds.
Height
, form.Bounds.
Height
);
DragDropTests.cs (4)
200
Y = (startCoordinates.Y - vscreen.Top) * DesktopNormalizedMax / vscreen.
Height
+ DesktopNormalizedMax / (vscreen.
Height
* 2)
205
Y = (endCoordinates.Y - vscreen.Top) * DesktopNormalizedMax / vscreen.
Height
+ DesktopNormalizedMax / (vscreen.
Height
* 2)
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));
Infra\ScreenshotService.cs (1)
53
int height = primaryScreen.Bounds.
Height
;
ListBoxAccesibleObjectTests.cs (1)
39
Point testPoint = listBox.PointToScreen(new Point(0, listBox.ClientRectangle.
Height
- 1));
ListBoxItemAccessibleObjestTests.cs (1)
31
boundsAfterHandleCreation.
Height
.Should().BeLessOrEqualTo(listBox.Height);
PropertyGridViewTests.cs (3)
35
int entryHeight = propertyGridView.AccessibilityGetGridEntryBounds(entry).
Height
;
44
int itemHeight = propertyGridView.AccessibilityGetGridEntryBounds(item).
Height
;
53
Assert.Equal(heightSum, propertyGridView.AccessibilityObject.Bounds.
Height
- borderHeight - entriesBorders);
WindowsFormsIntegration (3)
System\Windows\Integration\HostUtils.cs (3)
174
if (control.ClientRectangle.Width == 0 || control.ClientRectangle.
Height
== 0)
179
SD.Bitmap bitmap = new SD.Bitmap(control.ClientRectangle.Width, control.ClientRectangle.
Height
);
197
SD.Bitmap returnBitmap = new SD.Bitmap(childElementHost.ClientRectangle.Width, childElementHost.ClientRectangle.
Height
);
WinFormsControlsTest (2)
CustomComCtl32Button.cs (1)
100
int height = sender.ClientRectangle.
Height
- 10;
TrackBars.cs (1)
50
trackBar1.Height = ClientRectangle.
Height
- trackBar1.Top * 2;