203 writes to Y
System.Drawing.Common.Tests (2)
mono\System.Drawing\GraphicsTests.cs (2)
2881
arcrect.
Y
= baserect.Bottom - d;
2923
arcrect.
Y
= baserect.Bottom - d;
System.Drawing.Primitives (4)
System\Drawing\Rectangle.cs (4)
64
Y
= value.Y;
249
Y
-= height;
279
Y
= result.Y;
336
Y
+= y;
System.Windows.Forms (143)
System\Windows\Forms\Control.cs (1)
8161
rectangle.
Y
++;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
399
imageBounds.
Y
= imageStart.Y + 1;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (14)
295
layout.Focus.
Y
++;
383
layout.CheckBounds.
Y
= (field.Y + field.Height) - layout.CheckBounds.Height;
387
layout.CheckBounds.
Y
= field.Y + 2; // + 2: this needs to be aligned to the text (
391
layout.CheckBounds.
Y
= field.Y + (field.Height - layout.CheckBounds.Height) / 2;
402
layout.CheckArea.
Y
= field.Y;
414
layout.CheckArea.
Y
= field.Y;
423
layout.CheckArea.
Y
= field.Y;
426
layout.Field.
Y
+= checkSizeFull;
434
layout.CheckArea.
Y
= field.Y + field.Height - checkSizeFull;
579
layout.TextBounds.
Y
= Math.Max(
610
layout.TextBounds.
Y
= layout.ImageBounds.Y + layout.ImageBounds.Height;
617
layout.TextBounds.
Y
--;
646
layout.TextBounds.
Y
= Math.Max(layout.TextBounds.Y, maxBounds.Y);
653
layout.TextBounds.
Y
= Math.Max(layout.TextBounds.Y, layout.Field.Y);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
196
fullSize.
Y
-= layout.Options.DotNetOneButtonCompat ? 1 : 2;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (29)
2438
clip.
Y
+= MinimumColumnHeadersHeight - mouseBarOffset - 1;
2777
clip.
Y
= topEdge + Rows.SharedRow(index).GetMinimumHeight(index) - mouseBarOffset - 1;
3030
r.
Y
= Math.Min(inside.Bottom - 3, r.Y);
3031
r.
Y
= Math.Max(r.Y, 0);
4392
insideLeft.
Y
+= colHeaders.Height;
4466
insideLeft.
Y
++;
5518
rectScrollingArea.
Y
+= frozenVisibleRowsHeight;
6837
rect.
Y
--;
8314
columnRect.
Y
-= _layout.ColumnHeaders.Height;
14500
rightArea.
Y
--;
16769
gridRect.
Y
--;
16820
focusRect.
Y
-= change;
16845
edge.
Y
+= rect.Height - 1;
19219
rcBelowRows.
Y
+= _layout.ColumnHeaders.Height;
19224
rcBelowRows.
Y
++;
19228
rcBelowRows.
Y
+= visibleRowsHeight;
19298
edge.
Y
= bounds.Height - borderWidth;
19303
edge.
Y
= 0;
19531
rc.
Y
+= columnHeadersHeight;
19597
rowBounds.
Y
= boundingRect.Y + cy;
19653
rowBounds.
Y
= boundingRect.Y + cy;
19850
editingZone.
Y
+= totalVisibleFrozenHeight;
19889
cellBounds.
Y
--;
19890
cellClip.
Y
--;
26346
rowsRect.
Y
++;
26358
rowsRect.
Y
+= frozenRowsThickness;
26381
rowsRect.
Y
= _layout.Inside.Y;
29034
bottomArea.
Y
= topEdge;
29102
bottomArea.
Y
= topEdge;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (1)
418
s_rectThemeMargins.
Y
= rectContent.Y;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (6)
842
rect.
Y
= (advancedBorderStyle.Top == DataGridViewAdvancedCellBorderStyle.None) ? 0 : 1;
845
rect.
Y
++;
3572
iconBounds.
Y
+= cellBounds.Y;
3615
rectPadding.
Y
= bounds.Y;
3619
rectPadding.
Y
= bounds.Bottom - cellStyle.Padding.Bottom;
3805
borderAndPaddingWidths.
Y
+= cellStyle.Padding.Top;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
1367
fullSize.
Y
--;
1387
checkBounds.
Y
-= 3;
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (2)
850
valBounds.
Y
+= rectThemeMargins.Y;
898
valBounds.
Y
+= VerticalMargin;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (5)
533
borderAndPaddingWidths.
Y
+= cellStyle.Padding.Top;
1332
rectBottomSection.
Y
+= 21;
2200
dropRect.
Y
--;
2264
focusBounds.
Y
--;
2273
focusBounds.
Y
++;
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (1)
388
s_rectThemeMargins.
Y
= rectContent.Y;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (3)
652
imageBounds.
Y
= bounds.Y;
658
imageBounds.
Y
= bounds.Y + (bounds.Height - imageBounds.Height) / 2;
664
imageBounds.
Y
= bounds.Bottom - imageBounds.Height;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
723
valBounds.
Y
+= rectThemeMargins.X;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (3)
194
editingControlBounds.
Y
+= DATAGRIDVIEWTEXTBOXCELL_verticalTextOffsetTop;
242
editingControlBounds.
Y
+= (editingControlBounds.Height - preferredHeight) / 2;
247
editingControlBounds.
Y
+= editingControlBounds.Height - preferredHeight;
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (2)
208
boxBounds.
Y
+= font.Height / 2;
232
clipMiddle.
Y
= textBounds.Bottom;
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5013
rectInvalid.X = rectInvalid.
Y
= 0;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (2)
362
result.
Y
+= (result.Height - _image.Height) / 2;
372
result.
Y
= (ClientRectangle.Height - result.Height) / 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1886
rectangle.
Y
= y - s_cyDivider;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1617
rect.
Y
-= 1;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (3)
1905
rect.
Y
= row * (RowHeight + 1) + 1 + _location.Y;
1974
boundsScroll.
Y
= 1;
2296
drawBounds.
Y
+= 1;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
447
newBounds.
Y
= _dragBaseRect.Top + delta;
System\Windows\Forms\Controls\Splitter\Splitter.cs (3)
406
bounds.
Y
+= bounds.Height - _splitSize;
568
r.
Y
= bounds.Y + splitSize;
576
r.
Y
= bounds.Y + bounds.Height - splitSize - r.Height;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
389
r.
Y
-= p.Y;
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
744
rect.
Y
+= gripheight;
4177
gripRectangle.
Y
= Math.Max(0, displayRect.Top - Grip.Margin.Top);
4194
gripRectangle.
Y
= displayRect.Top - (Grip.GripThickness + Grip.Margin.Bottom);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (5)
96
rect.
Y
+= UpScrollButton.Height + UpScrollButton.Margin.Vertical;
456
_textRectangle.
Y
= LayoutUtils.VAlign(_textRectangle.Size, new Rectangle(Point.Empty, _maxItemSize), ContentAlignment.MiddleCenter).Y;
457
_textRectangle.
Y
+= (_textRectangle.Height % 2); // if the height is odd, push down by one px
664
adjustedLastItemBounds.
Y
-= deltaToScroll;
691
adjustedLastItemBounds.
Y
-= deltaToScroll;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (3)
74
arrowRect.
Y
= LayoutUtils.VAlign(arrowRect.Size, _ownerItem.ClientBounds, ContentAlignment.MiddleCenter).Y;
96
checkRectangle.
Y
+= (checkRectangle.Height - imageHeight) / 2;
130
imageRect.
Y
= LayoutUtils.VAlign(imageRect.Size, _ownerItem.ClientBounds, ContentAlignment.MiddleCenter).Y;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
97
bounds.
Y
= 0;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
592
cachedBounds.
Y
-= cellOffsets[i];
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (1)
60
dragBounds.
Y
= y;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
72
dragBounds.
Y
-= Row.Margin.Top + ToolStripPanel.Padding.Top + 4;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (7)
698
bounds.
Y
+= 2;
980
endGradient.
Y
= bounds.Bottom - endGradient.Height;
1008
endGradient.
Y
+= 1;
1235
overflowBoundsFill.
Y
= overflowBoundsFill.Height - _overflowButtonWidth + 1;
1359
topLeftShadowRect2.
Y
+= 1;
1367
topRightShadowRect2.
Y
+= 1;
1464
bounds.
Y
+= 3;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
291
bounds.
Y
= Math.Max(0, (e.GripBounds.Height - bounds.Height - 2/*number of pixels for border*/) / 2);
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
549
backRect.
Y
--;
564
backRect.
Y
--;
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 (1)
262
bounds.
Y
= bounds.Height + bounds.Y + BUTTON_PAD;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
323
iconBounds.
Y
-= _windowBounds.Y;
System\Windows\Forms\Form.cs (3)
902
bounds.
Y
-= screen.Y;
5187
_restoredWindowBounds.
Y
= y;
5211
_restoreBounds.
Y
= y;
System\Windows\Forms\Input\Cursor.cs (1)
254
targetRect.
Y
+= (int)graphics.Transform.OffsetY;
System\Windows\Forms\Internal\WinFormsUtils.cs (2)
105
bounds.
Y
= constrainingBounds.Bottom - 1 - bounds.Height;
110
bounds.
Y
= constrainingBounds.Top;
System\Windows\Forms\Layout\CommonProperties.cs (1)
306
originalBounds.
Y
= y;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (5)
768
r.
Y
= _splitterRect.Y - Top;
1365
_splitterRect.
Y
= Location.Y + SplitterDistanceInternal;
1405
r.
Y
= Panel1.Location.Y + splitSize;
1572
_splitterRect.
Y
= Location.Y;
1579
_splitterRect.
Y
= Location.Y + SplitterDistanceInternal;
System\Windows\Forms\Layout\DefaultLayout.cs (1)
406
remainingBounds.
Y
+= element.Bounds.Height;
System\Windows\Forms\Layout\FlowLayout.ContainerProxy.cs (1)
55
value.
Y
= DisplayRect.Bottom - value.Bottom;
System\Windows\Forms\Layout\LayoutUtils.cs (8)
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;
375
rect.
Y
-= padding.Top;
384
rect.
Y
+= padding.Top;
520
region2.
Y
+= specifiedContent.Height;
524
region1.
Y
+= bounds.Height - specifiedContent.Height;
System\Windows\Forms\Rendering\ControlPaint.cs (2)
94
result.
Y
= (bounds.Height - result.Height) / 2;
112
result.
Y
= (bounds.Height - result.Height) / 2;
System\Windows\Forms\Rendering\TextExtensions.cs (2)
185
adjustedBounds.
Y
= adjustedBounds.Top + adjustedBounds.Height / 2 - textHeight / 2;
190
adjustedBounds.
Y
= adjustedBounds.Bottom - textHeight;
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
198
rect.
Y
= _displayRect.Y;
789
_displayRect.
Y
= y;
System.Windows.Forms.Design (53)
System\Drawing\Design\ColorEditor.ColorPalette.cs (2)
124
rect.
Y
= s_marginY + down * (s_cellSizeY + s_marginY);
368
Y
= s_marginY
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
311
rectTabControl.
Y
= 0;
System\Drawing\Design\IconEditor.cs (1)
128
rectangle.
Y
+= (rectangle.Height - icon.Height) / 2;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (1)
216
controlRect.
Y
+= offset.Y; // offset for non-client area
System\Windows\Forms\Design\Behavior\NoResizeSelectionBorderGlyph.cs (1)
47
hitBounds.
Y
-= (DesignerUtils.s_selectionBorderHitArea - DesignerUtils.s_selectionBorderSize) / 2;
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (3)
138
rect.
Y
+= _parentGridSize.Height - yDelta;
143
rect.
Y
-= yDelta;
704
bounds.
Y
= Math.Min(baseBounds.Bottom - minHeight, baseBounds.Y - yOffset);
System\Windows\Forms\Design\Behavior\SelectionBorderGlyph.cs (2)
45
hitBounds.
Y
-= (DesignerUtils.s_selectionBorderHitArea - DesignerUtils.s_selectionBorderSize) / 2;
56
hitBounds.
Y
-= (DesignerUtils.s_selectionBorderHitArea - DesignerUtils.s_selectionBorderSize) / 2;
System\Windows\Forms\Design\ComponentTray.cs (5)
1206
_mouseDragWorkspace.
Y
= Math.Min(start.Y, end.Y);
1341
Y
= Math.Min(_mouseDragStart.Y, e.Y),
2276
rc.
Y
+= _borderWidth;
2293
rc.
Y
+= (_cyIcon + WhiteSpace);
2307
rc.
Y
+= 3;
System\Windows\Forms\Design\ControlDesigner.cs (2)
2247
borderRectangle.
Y
++;
2254
textRect.
Y
= imageRect.Y;
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
992
bounds.
Y
+= OWNERDRAWITEMIMAGEBUFFER;
System\Windows\Forms\Design\DesignerUtils.cs (2)
574
newBounds.
Y
+= e.Offset.Y; // snap to top - so move up our bounds
578
newBounds.
Y
= originalBounds.Y - originalBounds.Height + e.Offset.Y;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
220
bounds.
Y
-= margin.Top;
321
_childInfo[controlIndex].MarginBounds.
Y
= size.Min;
System\Windows\Forms\Design\OleDragDropHandler.cs (3)
373
newRect.
Y
= oldOffset.Y;
394
newRect.
Y
= newOffset.Y;
770
bounds.
Y
= dropPt.Y + pt.Y;
System\Windows\Forms\Design\ParentControlDesigner.cs (14)
313
displayRectangle.
Y
+= offset.Y; // offset for non-client area
466
bounds.
Y
= location.Y;
491
bounds.
Y
= DefaultControlLocation.Y;
497
bounds.
Y
= selectedControl.Location.Y + GridSize.Height;
534
bounds.
Y
+= offset.Height;
926
centeredLocation.
Y
= DefaultControlLocation.Y;
1111
adjustedRect.
Y
= minimumLocation.Y;
1143
updatedRect.
Y
= originalRect.Y;
1159
updatedRect.
Y
= (dragRect.Y / gridSize.Height) * gridSize.Height;
1164
updatedRect.
Y
+= gridSize.Height;
1921
_mouseDragOffset.
Y
= _mouseDragBase.Y;
1955
_mouseDragOffset.
Y
+= _mouseDragOffset.Height;
1990
oldFrameRect.
Y
-= _adornerWindowToScreenOffset.Y;
2040
paintRect.X = paintRect.
Y
= 0;
System\Windows\Forms\Design\SelectionUIHandler.cs (3)
106
b.
Y
= bounds[i].Y;
355
newBounds.
Y
= tempNewBounds.Y;
361
newBounds.
Y
= tempNewBounds.Y;
System\Windows\Forms\Design\SelectionUIService.cs (4)
660
_mouseDragOffset.
Y
= screenCoord.Y - _mouseDragAnchor.Y;
680
_mouseDragOffset.
Y
= screenCoord.Y - _mouseDragAnchor.Y;
693
delta.
Y
-= old.Y;
1075
newOffset = offset with { X = 0,
Y
= 0 };
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (3)
160
rect.
Y
= inner.Y + inner.Height;
169
rect.
Y
= outer.Y;
173
rect.
Y
= inner.Y + (inner.Height - GRABHANDLE_HEIGHT) / 2;
System\Windows\Forms\Design\StatusCommandUI.cs (1)
58
bounds.
Y
= location.Y;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
1254
boundsInAdornerWindow.
Y
+= (ToolStripItem.Height - _editorNode.EditorToolStrip.Height) / 2;
1255
boundsInAdornerWindow.
Y
++;
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (1)
121
expectedClipRect.
Y
-= 2;
1042 references to Y
PresentationUI (6)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
1036
cellBounds.
Y
+ (cellBounds.Height - boxSize.Height) / 2);
MS\Internal\Documents\SignatureSummaryDialog.cs (5)
658
bounds.
Y
+ CellPadding.Top,
668
bounds.
Y
+ CellPadding.Top,
676
bounds.
Y
+ CellPadding.Top,
703
bounds.
Y
+ CellPadding.Top,
711
bounds.
Y
+ CellPadding.Top,
System.ComponentModel.TypeConverter (2)
System\Drawing\RectangleConverter.cs (2)
76
intConverter.ConvertToString(context, culture, rect.
Y
),
90
rect.X, rect.
Y
, rect.Width, rect.Height});
System.Drawing.Common.Tests (63)
mono\System.Imaging\MetafileTest.cs (3)
69
Assert.Equal(-40, header.Bounds.
Y
);
144
Assert.Equal(0, header.Bounds.
Y
);
192
Assert.Equal(0, mh.Bounds.
Y
);
System\Drawing\BitmapTests.cs (1)
383
Color expectedColor = bitmap.GetPixel(rectangle.X + x, rectangle.
Y
+ y);
System\Drawing\Imaging\ImageAttributesTests.cs (49)
77
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, clone);
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);
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);
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);
210
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
281
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
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);
348
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
371
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
398
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
427
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
487
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
500
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
513
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
543
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
557
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
586
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
599
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
612
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
645
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
676
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
692
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
726
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
743
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
760
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
792
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
807
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
821
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
855
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
870
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
910
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
936
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
966
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
1016
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
1031
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
1062
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
1130
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
1146
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
1176
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
1189
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
1202
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
1254
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
1268
graphics.DrawImage(bitmap, _rectangle, _rectangle.X, _rectangle.
Y
, _rectangle.Width, _rectangle.Height, GraphicsUnit.Pixel, imageAttr);
System\Drawing\Printing\PrinterSettingsTests.cs (2)
460
Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.
Y
, graphic.VisibleClipBounds.Y, 0);
483
Assert.Equal((double)printerSettings.DefaultPageSettings.Bounds.
Y
, graphic.VisibleClipBounds.Y, 0);
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 (27)
System\Drawing\Rectangle.cs (26)
60
readonly get => new Point(X,
Y
);
132
public readonly int Top =>
Y
;
146
public readonly int Bottom => unchecked(
Y
+ Height);
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);
279
Y = result.
Y
;
292
int y1 = Math.Max(a.
Y
, b.
Y
);
293
int y2 = Math.Min(a.
Y
+ a.Height, b.
Y
+ b.Height);
308
(rect.
Y
<
Y
+ Height) && (
Y
< rect.
Y
+ rect.Height);
317
int y1 = Math.Min(a.
Y
, b.
Y
);
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 (2)
System\Private\Windows\Core\BinaryFormat\BinaryFormatWriter.cs (1)
168
value.
Y
,
Windows\Win32\Graphics\Gdi\RegionScope.cs (1)
29
Region = PInvokeCore.CreateRectRgn(rectangle.X, rectangle.
Y
, rectangle.Right, rectangle.Bottom);
System.Windows.Forms (663)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
1700
*pyTop = bounds.
Y
;
1713
*pyTop = bounds.
Y
;
System\Windows\Forms\Accessibility\LabelEditUiaTextProvider.cs (1)
192
Point ptStart = new(rectangle.X + 1, rectangle.
Y
+ 1);
System\Windows\Forms\ActiveX\AxHost.cs (1)
1201
if (oldBounds.X == x && oldBounds.
Y
== y && oldBounds.Width == width && oldBounds.Height == height)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1702
bounds.Location = new Point(bounds.X, bounds.
Y
);
System\Windows\Forms\ContextMenuStrip.cs (3)
99
if (bounds.
Y
< screenBounds.
Y
)
110
Show(bounds.X, bounds.
Y
);
System\Windows\Forms\Control.cs (12)
1011
set => SetBounds(value.X, value.
Y
, value.Width, value.Height, BoundsSpecified.All);
4505
cp.Y -= parentClient.
Y
;
4906
|| targetBounds.X < 0 || targetBounds.
Y
< 0)
4936
targetBounds.
Y
,
5282
int sy = bounds.
Y
;
5300
sy = (int)Math.Round(bounds.
Y
* dy);
8165
e.Graphics.DrawRectangle(pen, rectangle.X, rectangle.
Y
, rectangle.Width - 1, rectangle.Height - 1);
8249
newArgs.Graphics.TranslateClip(-shift.X, -shift.
Y
);
9786
SetBoundsCore(rawScaledBounds.X, rawScaledBounds.
Y
, scaledSize.Width, scaledSize.Height, BoundsSpecified.All);
10075
y = adjustedBounds.
Y
;
12646
if (locationProperty is not null && !locationProperty.IsReadOnly && (bounds.X != _x || bounds.
Y
!= _y))
12664
SetBoundsCore(bounds.X, bounds.
Y
, bounds.Width, bounds.Height, specified);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (18)
137
Point p1 = new(bounds.X + bounds.Width - 1, bounds.
Y
); // Upper inner right
138
Point p2 = new(bounds.X, bounds.
Y
); // Upper left
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
192
Point p1 = new(bounds.X + bounds.Width - 1, bounds.
Y
); // Upper inner right
193
Point p2 = new(bounds.X, bounds.
Y
); // Upper left
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
240
Point p1 = new(bounds.X + bounds.Width - 1, bounds.
Y
); // Upper inner right
241
Point p2 = new(bounds.X, bounds.
Y
); // Upper left
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
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);
334
Rectangle top = new(bounds.X + size, bounds.
Y
, bounds.Width - size * 2, size);
335
Rectangle bottom = new(bounds.X + size, bounds.
Y
+ bounds.Height - size, bounds.Width - size * 2, size);
411
graphics.DrawImage(image, imageBounds.X, imageBounds.
Y
, image.Width, image.Height);
438
graphics.DrawRectangle(pen, r.X, r.
Y
, r.Width - 1, r.Height - 1);
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (19)
282
layout.TextBounds.
Y
- 1,
358
layout.CheckBounds = new Rectangle(Client.X, Client.
Y
, checkSizeFull, checkSizeFull);
383
layout.CheckBounds.Y = (field.
Y
+ field.Height) - layout.CheckBounds.Height;
387
layout.CheckBounds.Y = field.
Y
+ 2; // + 2: this needs to be aligned to the text (
391
layout.CheckBounds.Y = field.
Y
+ (field.Height - layout.CheckBounds.Height) / 2;
402
layout.CheckArea.Y = field.
Y
;
414
layout.CheckArea.Y = field.
Y
;
423
layout.CheckArea.Y = field.
Y
;
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),
581
layout.Field.
Y
);
582
layout.TextBounds.Height = textBottom - layout.TextBounds.
Y
;
610
layout.TextBounds.Y = layout.ImageBounds.
Y
+ layout.ImageBounds.Height;
646
layout.TextBounds.Y = Math.Max(layout.TextBounds.
Y
, maxBounds.
Y
);
653
layout.TextBounds.Y = Math.Max(layout.TextBounds.
Y
, layout.Field.
Y
);
656
layout.TextBounds.Height = bottom - layout.TextBounds.
Y
;
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (29)
105
hdc.FillRectangle(fieldBrush, new(bounds.X + 2, bounds.
Y
+ 2, 8, 8));
106
hdc.FillRectangle(fieldBrush, new(bounds.X + 4, bounds.
Y
+ 1, 4, 10));
107
hdc.FillRectangle(fieldBrush, new(bounds.X + 1, bounds.
Y
+ 4, 10, 4));
109
hdc.DrawLine(borderPen, new(bounds.X + 4, bounds.
Y
+ 0), new(bounds.X + 8, bounds.
Y
+ 0));
110
hdc.DrawLine(borderPen, new(bounds.X + 4, bounds.
Y
+ 11), new(bounds.X + 8, bounds.
Y
+ 11));
112
hdc.DrawLine(borderPen, new(bounds.X + 2, bounds.
Y
+ 1), new(bounds.X + 4, bounds.
Y
+ 1));
113
hdc.DrawLine(borderPen, new(bounds.X + 8, bounds.
Y
+ 1), new(bounds.X + 10, bounds.
Y
+ 1));
115
hdc.DrawLine(borderPen, new(bounds.X + 2, bounds.
Y
+ 10), new(bounds.X + 4, bounds.
Y
+ 10));
116
hdc.DrawLine(borderPen, new(bounds.X + 8, bounds.
Y
+ 10), new(bounds.X + 10, bounds.
Y
+ 10));
118
hdc.DrawLine(borderPen, new(bounds.X + 0, bounds.
Y
+ 4), new(bounds.X + 0, bounds.
Y
+ 8));
119
hdc.DrawLine(borderPen, new(bounds.X + 11, bounds.
Y
+ 4), new(bounds.X + 11, bounds.
Y
+ 8));
121
hdc.DrawLine(borderPen, new(bounds.X + 1, bounds.
Y
+ 2), new(bounds.X + 1, bounds.
Y
+ 4));
122
hdc.DrawLine(borderPen, new(bounds.X + 1, bounds.
Y
+ 8), new(bounds.X + 1, bounds.
Y
+ 10));
124
hdc.DrawLine(borderPen, new(bounds.X + 10, bounds.
Y
+ 2), new(bounds.X + 10, bounds.
Y
+ 4));
125
hdc.DrawLine(borderPen, new(bounds.X + 10, bounds.
Y
+ 8), new(bounds.X + 10, bounds.
Y
+ 10));
154
layout.CheckBounds.
Y
+ GetScaledNumber(offset - 1, scale),
162
layout.CheckBounds.
Y
+ GetScaledNumber(offset, scale),
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxUiaTextProvider.cs (1)
253
Point ptStart = new(rectangle.X + 1, rectangle.
Y
+ 1);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (7)
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));
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
4070
Invalidate(new Rectangle(_layout.Inside.X, _layout.Inside.
Y
, RowHeadersWidth, ColumnHeadersHeight));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (35)
2778
clip.Height = _layout.Data.
Y
+ _layout.Data.Height - topEdge - 1;
2981
inside.
Y
,
2991
inside.
Y
,
3006
inside.
Y
,
3030
r.Y = Math.Min(inside.Bottom - 3, r.
Y
);
3031
r.Y = Math.Max(r.
Y
, 0);
4478
Debug.Assert(newLayout.Data.
Y
>= 0);
5713
PInvoke.PatBlt(dc, r.X, r.
Y
, r.Width, DATAGRIDVIEW_shadowEdgeThickness, ROP_CODE.PATINVERT);
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);
6053
int delta = y - _layout.ColumnHeaders.
Y
- ColumnHeadersHeight + 1;
8308
? new Rectangle(cx - displayWidth, data.
Y
, displayWidth, data.Height)
8309
: new Rectangle(cx, data.
Y
, displayWidth, data.Height);
9044
int cy = data.
Y
;
9114
Debug.Assert(y >= data.
Y
- 1 && y < data.Bottom, "y must be inside the vertical bounds of the data area.");
9116
if (y == data.
Y
- 1)
9122
int cy = data.
Y
;
9204
int y = _layout.Data.
Y
;
10347
int vertScrollBarTop = _layout.Data.
Y
;
10351
vertScrollBarTop = _layout.ColumnHeaders.
Y
;
16767
if (gridRect.
Y
== _layout.Data.
Y
)
17450
oldClientRectangle.
Y
,
17454
oldClientRectangle.
Y
+ oldClientRectangle.Height - borderWidth,
17472
newClientRectangle.
Y
,
17482
newClientRectangle.
Y
+ newClientRectangle.Height - borderWidth,
17492
oldGridFocusRectangle.
Y
,
17498
oldGridFocusRectangle.
Y
+ oldGridFocusRectangle.Height - 1,
19597
rowBounds.Y = boundingRect.
Y
+ cy;
19653
rowBounds.Y = boundingRect.
Y
+ cy;
26381
rowsRect.Y = _layout.Inside.
Y
;
29033
bottomArea.Height -= bottomArea.
Y
- topEdge;
29101
bottomArea.Height -= bottomArea.
Y
- topEdge;
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (3)
311
marginHeights = rectThemeMargins.
Y
+ rectThemeMargins.Height;
418
s_rectThemeMargins.Y = rectContent.
Y
;
681
valBounds.Offset(borderWidths.X, borderWidths.
Y
);
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (55)
1022
cellValueBounds.
Y
+ (cellValueBounds.Height - s_iconsHeight) / 2,
3163
bounds.
Y
,
3213
graphics.DrawLine(penGridColor, bounds.X, bounds.
Y
, bounds.X, bounds.Bottom - 1);
3217
graphics.DrawLine(penControlDark, bounds.X, bounds.
Y
, bounds.X, bounds.Bottom - 1);
3221
graphics.DrawLine(penControlLightLight, bounds.X, bounds.
Y
, bounds.X, bounds.Bottom - 1);
3225
y1 = bounds.
Y
+ 2;
3237
graphics.DrawLine(penBackColor, bounds.X, bounds.
Y
, bounds.X, bounds.Bottom - 1);
3242
y1 = bounds.
Y
+ 1;
3255
graphics.DrawLine(penControlDark, bounds.X, bounds.
Y
, bounds.X, bounds.Bottom - 1);
3260
y1 = bounds.
Y
+ 1;
3273
graphics.DrawLine(penControlLightLight, bounds.X, bounds.
Y
, bounds.X, bounds.Bottom - 1);
3281
graphics.DrawLine(penGridColor, bounds.Right - 1, bounds.
Y
, bounds.Right - 1, bounds.Bottom - 1);
3285
graphics.DrawLine(penControlLightLight, bounds.Right - 1, bounds.
Y
, bounds.Right - 1, bounds.Bottom - 1);
3289
graphics.DrawLine(penControlDark, bounds.Right - 1, bounds.
Y
, bounds.Right - 1, bounds.Bottom - 1);
3293
y1 = bounds.
Y
+ 2;
3305
graphics.DrawLine(penBackColor, bounds.Right - 1, bounds.
Y
, bounds.Right - 1, bounds.Bottom - 1);
3310
y1 = bounds.
Y
+ 1;
3323
graphics.DrawLine(penControlDark, bounds.Right - 2, bounds.
Y
, bounds.Right - 2, bounds.Bottom - 1);
3328
y1 = bounds.
Y
+ 1;
3342
graphics.DrawLine(penControlLightLight, bounds.Right - 2, bounds.
Y
, bounds.Right - 2, bounds.Bottom - 1);
3351
graphics.DrawLine(penGridColor, bounds.X, bounds.
Y
, bounds.Right - 1, bounds.
Y
);
3369
graphics.DrawLine(penControlDark, x1, bounds.
Y
, x2, bounds.
Y
);
3387
graphics.DrawLine(penControlLightLight, x1, bounds.
Y
, x2, bounds.
Y
);
3413
graphics.DrawLine(penBackColor, x1, bounds.
Y
, x2, bounds.
Y
);
3414
graphics.DrawLine(penControlLightLight, x1 + 1, bounds.
Y
, x2 - 1, bounds.
Y
);
3432
graphics.DrawLine(penControlDark, bounds.X, bounds.
Y
, bounds.Right - 1, bounds.
Y
);
3433
graphics.DrawLine(penControlLightLight, x1, bounds.
Y
+ 1, x2, bounds.
Y
+ 1);
3451
graphics.DrawLine(penControlLightLight, bounds.X, bounds.
Y
, bounds.Right - 1, bounds.
Y
);
3452
graphics.DrawLine(penControlDark, x1, bounds.
Y
+ 1, x2, bounds.
Y
+ 1);
3572
iconBounds.Y += cellBounds.
Y
;
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);
3615
rectPadding.Y = bounds.
Y
;
3767
DataGridView.EditingControl.Location = new Point(editingControlBounds.X, editingControlBounds.
Y
);
3835
if (cellClip.
Y
- cellBounds.
Y
>= borderAndPaddingWidths.
Y
)
3837
yEditingPanel = cellClip.
Y
;
3838
hEditingPanel -= cellClip.
Y
- cellBounds.
Y
;
3842
yEditingPanel = cellBounds.
Y
+ borderAndPaddingWidths.
Y
;
3843
hEditingPanel -= borderAndPaddingWidths.
Y
;
3855
yEditingControl = cellBounds.
Y
- cellClip.
Y
;
3856
hEditingControl = cellBounds.Height - borderAndPaddingWidths.
Y
- borderAndPaddingWidths.Height;
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (2)
736
preferredSize.Height += borderWidths.
Y
;
1064
valBounds.Offset(borderWidths.X, borderWidths.
Y
);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (4)
698
preferredSize.Height += rectThemeMargins.
Y
+ rectThemeMargins.Height;
766
valBounds.Offset(borderWidths.X, borderWidths.
Y
);
850
valBounds.Y += rectThemeMargins.
Y
;
851
valBounds.Height -= rectThemeMargins.
Y
+ rectThemeMargins.Height;
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (29)
538
size.Height - borderAndPaddingWidths.
Y
- borderAndPaddingWidths.Height);
549
y >= borderAndPaddingWidths.
Y
+ 1 &&
550
y <= borderAndPaddingWidths.
Y
+ 1 + dropHeight)
1914
valBounds.Offset(borderWidths.X, borderWidths.
Y
);
1983
g.DrawRectangle(SystemPens.ControlLightLight, new Rectangle(valBounds.X, valBounds.
Y
, valBounds.Width - 1, valBounds.Height - 1));
2095
g.DrawLine(pen, dropRect.X, dropRect.
Y
,
2096
dropRect.X + dropRect.Width - 1, dropRect.
Y
);
2097
g.DrawLine(pen, dropRect.X, dropRect.
Y
,
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);
2106
g.DrawLine(pen, valBounds.X + valBounds.Width - 1, valBounds.
Y
,
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);
2117
g.DrawLine(pen, dropRect.X + dropRect.Width - 1, dropRect.
Y
,
2118
dropRect.X + dropRect.Width - 1, dropRect.
Y
+ dropRect.Height - 1);
2124
g.DrawLine(pen, valBounds.X, valBounds.
Y
,
2125
valBounds.X + valBounds.Width - 2, valBounds.
Y
);
2126
g.DrawLine(pen, valBounds.X, valBounds.
Y
,
2127
valBounds.X, valBounds.
Y
+ valBounds.Height - 1);
2134
g.DrawLine(pen, dropRect.X + 1, dropRect.
Y
+ 1,
2135
dropRect.X + dropRect.Width - 2, dropRect.
Y
+ 1);
2136
g.DrawLine(pen, dropRect.X + 1, dropRect.
Y
+ 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);
2146
g.DrawLine(pen, dropRect.X + dropRect.Width - 2, dropRect.
Y
+ 1,
2147
dropRect.X + dropRect.Width - 2, dropRect.
Y
+ dropRect.Height - 2);
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (3)
388
s_rectThemeMargins.Y = rectContent.
Y
;
394
s_rectThemeMargins.
Y
+ s_rectThemeMargins.Width + s_rectThemeMargins.Height == 0)
539
bounds.Offset(borderWidths.X, borderWidths.
Y
);
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (6)
584
imageBounds = new Rectangle(bounds.X, bounds.
Y
, imgWidth, imgHeight);
593
bounds.
Y
,
602
bounds.
Y
,
652
imageBounds.Y = bounds.
Y
;
658
imageBounds.Y = bounds.
Y
+ (bounds.Height - imageBounds.Height) / 2;
746
valBounds.Offset(borderWidths.X, borderWidths.
Y
);
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (1)
906
valBounds.Offset(borderWidths.X, borderWidths.
Y
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (5)
539
borderAndPaddingWidths += rectThemeMargins.
Y
;
648
valBounds.Offset(borderWidths.X, borderWidths.
Y
);
718
valBounds.X += rectThemeMargins.
Y
;
721
valBounds.Width -= rectThemeMargins.
Y
+ rectThemeMargins.Height;
1028
int height = bounds.
Y
+ (bounds.Height - s_iconsHeight) / 2;
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (2)
671
valBounds.Offset(borderWidths.X, borderWidths.
Y
);
798
DataGridView!.EditingControl!.Location = new Point(editingControlBounds.X, editingControlBounds.
Y
);
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (10)
235
valBounds.Offset(borderWidths.X, borderWidths.
Y
);
378
graphics.DrawLine(penControlDark, bounds.X, bounds.
Y
, bounds.X, bounds.Bottom - 1);
379
graphics.DrawLine(penControlDark, bounds.X, bounds.
Y
, bounds.Right - 1, bounds.
Y
);
384
graphics.DrawLine(penControlLightLight, bounds.X, bounds.
Y
, bounds.X, bounds.Bottom - 1);
385
graphics.DrawLine(penControlLightLight, bounds.X, bounds.
Y
, bounds.Right - 1, bounds.
Y
);
390
graphics.DrawLine(penControlDark, bounds.X + 1, bounds.
Y
+ 1, bounds.X + 1, bounds.Bottom - 1);
391
graphics.DrawLine(penControlDark, bounds.X + 1, bounds.
Y
+ 1, bounds.Right - 1, bounds.
Y
+ 1);
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (6)
393
ptTextLocation.Y = cellBounds.
Y
;
398
ptTextLocation.Y = cellBounds.
Y
;
403
ptTextLocation.Y = cellBounds.
Y
;
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 (2)
235
Debug.Assert(textBounds.
Y
<= boxBounds.
Y
, "if text below box, need to render area of box above text");
System\Windows\Forms\Controls\Labels\Label.cs (5)
891
yLoc = (r.
Y
+ r.Height - 4) - pointImageSize.Height;
895
yLoc = r.
Y
+ 2;
899
yLoc = r.
Y
+ (r.Height - pointImageSize.Height) / 2;
991
ControlPaint.DrawImageDisabled(g, image, loc.X, loc.
Y
, BackColor);
995
g.DrawImage(image, loc.X, loc.
Y
, image.Width, image.Height);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (3)
399
yLoc = clientRect.
Y
;
415
yLoc = clientRect.
Y
;
582
clientRectWithPadding.
Y
,
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.cs (5)
542
bounds.
Y
+ centeringFactor,
561
CheckBoxRenderer.DrawCheckBoxWithVisualStyles(e, new Point(box.X, box.
Y
), cbState, HWNDInternal);
571
bounds.
Y
,
628
textBounds.
Y
,
721
bounds.
Y
,
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (4)
113
Graphics.DrawLine(SystemPens.ControlLightLight, r.X, r.
Y
, r.Right, r.
Y
);
114
Graphics.DrawLine(SystemPens.ControlLightLight, r.X, r.
Y
, r.X, r.Bottom);
118
Graphics.DrawLine(SystemPens.ControlDark, r.Right, r.
Y
+ 1, r.Right, r.Bottom);
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (1)
106
resultBounds = new Rectangle(originalBounds.X, originalBounds.
Y
, textSize.Width, textSize.Height);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
5012
rectInvalid.Height += rectInvalid.
Y
;
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (2)
97
Point point = new(listviewBounds.X + itemBounds.X, listviewBounds.
Y
+ itemBounds.
Y
);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (2)
44
_owningListView.AccessibilityObject.Bounds.
Y
+ _owningItem.Bounds.
Y
,
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemListAccessibleObject.cs (2)
22
_owningListView.AccessibilityObject.Bounds.
Y
+ _owningItem.Bounds.
Y
,
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (2)
65
_owningListView.AccessibilityObject.Bounds.
Y
+ bounds.
Y
,
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (2)
137
int currentY = CalendarsAccessibleObjects.First?.Value.Bounds.
Y
?? 0;
142
if (calendar.Bounds.
Y
> currentY)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (7)
1960
y = Math.Min((rectTarget.
Y
+ rectTarget.Height - 15), y);
1974
ControlPaint.DrawReversibleLine(new Point(rc.X + i, rc.
Y
), new Point(rc.X + i, rc.
Y
+ rc.Height), targetControl.BackColor);
1981
ControlPaint.DrawReversibleLine(new Point(rc.X, rc.
Y
+ i), new Point(rc.X + rc.Width, rc.
Y
+ i), targetControl.BackColor);
2825
if (_dividerMoveY != rectDoc.
Y
)
2828
int yNew = rectDoc.Height + rectDoc.
Y
- _dividerMoveY - (s_cyDivider / 2);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (5)
121
Rectangle focusRect = new(indent, rect.
Y
, labelWidth + 3, rect.Height - 1);
137
g.DrawLine(topLinePen, rect.X - 1, rect.
Y
- 1, rect.Width + 2, rect.
Y
- 1);
154
g.DrawLine(topLinePen, rect.X - 2, rect.
Y
- 1, rect.Width + 1, rect.
Y
- 1);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (15)
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);
1614
_labelTipPoint = maxSpace <= labelWidth ? new Point(stringX + 2, rect.
Y
+ 1) : InvalidPoint;
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);
1773
outline.
Y
+ indent,
1775
outline.
Y
+ outline.Height - indent - 1);
1847
rect.
Y
+ 1,
1907
rect.
Y
- 1,
1946
ValueToolTipLocation = doToolTip ? new Point(rect.X + 2, rect.
Y
- 1) : InvalidPoint;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (16)
456
Point point = PointToScreen(new(rect.X, rect.
Y
));
602
Point pt = new(rect.X, rect.
Y
);
895
control.SetBounds(targetRectangle.X, targetRectangle.
Y
, targetRectangle.Width, targetRectangle.Height);
1102
Point newOrigin = new(rect.X, rect.
Y
);
1157
Point newOrigin = new(rect.X, rect.
Y
);
1364
return PARAM.ToInt(r.X, r.
Y
);
1427
location.Y += rect.
Y
;
1428
if (rectScreen.
Y
+ rectScreen.Height < (size.Height + location.Y + EditTextBox.Height))
2006
rect.Height = Size.Height - rect.
Y
- 1;
2988
gridEntry.OnMouseClick(e.X - r.X, e.Y - r.
Y
, e.Clicks, e.Button);
3056
if (onLabel && gridItem.GetLabelToolTipLocation(e.X - itemRect.X, e.Y - itemRect.
Y
) != InvalidPoint)
3271
Point startPosition = FindPosition(clipRect.X, clipRect.
Y
);
3272
Point endPosition = FindPosition(clipRect.X, clipRect.
Y
+ clipRect.Height);
3328
yPosition = rect.
Y
+ rect.Height;
4326
rect.X + rect.Width - sizeBtn.Width, rect.
Y
,
5272
tipPt = curEntry.GetLabelToolTipLocation(mouseLoc.X - itemRect.X, mouseLoc.Y - itemRect.
Y
);
System\Windows\Forms\Controls\Splitter\Splitter.cs (4)
568
r.Y = bounds.
Y
+ splitSize;
576
r.Y = bounds.
Y
+ bounds.Height - splitSize - r.Height;
702
PInvoke.PatBlt(dc, r.X, r.
Y
, r.Width, r.Height, ROP_CODE.PATINVERT);
828
int ySplit = r.
Y
;
System\Windows\Forms\Controls\TabControl\TabPage.cs (2)
618
inflateRect.
Y
- 2,
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 (1)
371
Point ptStart = new(rectangle.X + 1, rectangle.
Y
+ 1);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (14)
202
CommonProperties.UpdateSpecifiedBounds(this, bounds.X, bounds.
Y
, bounds.Width, bounds.Height, BoundsSpecified.Location);
2141
selectedItem.Bounds.
Y
+ selectedItem.Height / 2);
2667
bounds.
Y
,
3547
clippingRect.Offset(-bounds.X, -bounds.
Y
);
3559
item.Bounds.
Y
,
3572
item.Bounds.
Y
,
3788
new(verticalBeamStart, _lastInsertionMarkRect.
Y
), new(verticalBeamStart, _lastInsertionMarkRect.Bottom - 1),
3789
new(verticalBeamStart + 1, _lastInsertionMarkRect.
Y
), new(verticalBeamStart + 1, _lastInsertionMarkRect.Bottom - 1)
3802
new(start, _lastInsertionMarkRect.
Y
), new(start + widthOfBeam - 1, _lastInsertionMarkRect.
Y
),
3803
new(start + 1, _lastInsertionMarkRect.
Y
+ 1), new(start + widthOfBeam - 2, _lastInsertionMarkRect.
Y
+ 1)
3809
int start = _lastInsertionMarkRect.
Y
;
4657
SetBoundsCore(bounds.X, bounds.
Y
, bounds.Width, bounds.Height, specified);
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 (2)
1202
SetBoundsCore(bounds.X, bounds.
Y
, bounds.Width, bounds.Height, BoundsSpecified.Location);
1528
base.SetBoundsCore(bounds.X, bounds.
Y
, bounds.Width, bounds.Height, specified);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (4)
456
_textRectangle.Y = LayoutUtils.VAlign(_textRectangle.Size, new Rectangle(Point.Empty, _maxItemSize), ContentAlignment.MiddleCenter).
Y
;
471
if (displayRect.
Y
> nextItem.Bounds.Top)
473
delta = nextItem.Bounds.Top - displayRect.
Y
;
477
delta = nextItem.Bounds.Bottom - (displayRect.
Y
+ displayRect.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (10)
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);
302
g.DrawLine(p, bounds.X + indent, bounds.
Y
, bounds.Width - 1, bounds.
Y
);
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);
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);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
953
SetBounds(currentBounds.X, currentBounds.
Y
, currentBounds.Width, value);
2010
SetBounds(currentBounds.X, currentBounds.
Y
, value, currentBounds.Height);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (2)
74
arrowRect.Y = LayoutUtils.VAlign(arrowRect.Size, _ownerItem.ClientBounds, ContentAlignment.MiddleCenter).
Y
;
130
imageRect.Y = LayoutUtils.VAlign(imageRect.Size, _ownerItem.ClientBounds, ContentAlignment.MiddleCenter).
Y
;
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 (2)
894
Point endLocation = (Orientation == Orientation.Horizontal) ? new Point(clientLocation.X, row.Bounds.
Y
) : new Point(row.Bounds.X, clientLocation.Y);
922
clientLocation.Y = row.Bounds.
Y
;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelControlCollection.XYComparer.cs (2)
33
return one.Bounds.
Y
< two.Bounds.
Y
? -1 : 1;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelControlCollection.YXComparer.cs (4)
27
if (one.Bounds.
Y
< two.Bounds.
Y
)
32
if (one.Bounds.
Y
== two.Bounds.
Y
)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelCell.cs (1)
66
Debug.Assert(_cachedBounds.X >= 0 && _cachedBounds.
Y
>= 0, "cached bounds are outside of the client area, investigate");
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (2)
57
int y = previousRowBounds.
Y
+ previousRowBounds.Height - (previousRowBounds.Height >> 2);
59
dragBounds.Height += dragBounds.
Y
- y;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.VerticalRowManager.cs (1)
427
if (cell.Bounds.
Y
>= locationToDrag.Y)
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (4)
67
g.DrawLine(p, bounds.X + indent, bounds.
Y
, bounds.Width - 1, bounds.
Y
);
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);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (14)
196
overflowArrowRect.
Y
- Offset2Y,
198
overflowArrowRect.
Y
- Offset2Y);
201
overflowArrowRect.
Y
- Offset2Y + 1,
203
overflowArrowRect.
Y
- Offset2Y + 1);
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);
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);
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);
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);
1596
g.DrawRectangle(pen, bounds.X, bounds.
Y
, bounds.Width - 1, bounds.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (1)
340
itemLocation.Y = bounds.
Y
;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (1)
467
g.DrawRectangle(pen, bounds.X, bounds.
Y
, bounds.Width - 1, bounds.Height - 1);
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 (4)
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);
150
t_visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, bounds.
Y
, bounds.Width, LineWidth), Edges.Top, edgeStyle, EdgeEffects.None);
159
float y = bounds.
Y
+ (numTicks - 1) * inc;
System\Windows\Forms\Controls\TreeView\TreeView.cs (2)
2829
Point textLoc = new(bounds.X - 1, bounds.
Y
); // required to center the text
3431
client = new Point(treeNode.Bounds.X, treeNode.Bounds.
Y
+ treeNode.Bounds.Height / 2);
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
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 (7)
159
_windowBounds.
Y
,
199
bounds.
Y
- _windowBounds.
Y
,
323
iconBounds.Y -= _windowBounds.
Y
;
344
iconRegion.Region.Translate(iconBounds.X, iconBounds.
Y
);
346
iconRegion.Region.Translate(-iconBounds.X, -iconBounds.
Y
);
388
_windowBounds.
Y
,
System\Windows\Forms\Form.cs (18)
902
bounds.Y -= screen.
Y
;
907
SetDesktopBounds(value.X, value.
Y
, value.Width, value.Height);
925
loc.Y -= screen.
Y
;
1674
&& _restoreBounds.
Y
== -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);
3871
if (p.Y < screenRect.
Y
)
3873
p.Y = screenRect.
Y
;
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);
5010
SetBounds(_restoredWindowBounds.X, _restoredWindowBounds.
Y
,
5324
SetBounds(x + workingArea.X, y + workingArea.
Y
, width, height, BoundsSpecified.All);
5333
Location = new Point(workingArea.X + x, workingArea.
Y
+ y);
6819
mmi->ptMaxPosition.Y = maximizedBounds.
Y
;
System\Windows\Forms\Input\Cursor.cs (2)
273
imageY = imageRect.
Y
;
286
targetY = targetRect.
Y
;
System\Windows\Forms\Layout\CommonProperties.cs (1)
291
bool yChangedButNotSpecified = ((specified & BoundsSpecified.Y) == BoundsSpecified.None) & y != originalBounds.
Y
;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1420
suggestedRectangle.
Y
,
System\Windows\Forms\Layout\Containers\SplitContainer.cs (9)
718
OnSplitterMoved(new SplitterEventArgs(SplitterRectangle.X + SplitterRectangle.Width / 2, SplitterRectangle.
Y
+ SplitterRectangle.Height / 2, SplitterRectangle.X, SplitterRectangle.
Y
));
768
r.Y = _splitterRect.
Y
- Top;
990
int ySplit = r.
Y
;
991
SplitterCancelEventArgs se = new(Left + SplitterRectangle.X + SplitterRectangle.Width / 2, Top + SplitterRectangle.
Y
+ SplitterRectangle.Height / 2, xSplit, ySplit);
1103
int ySplit = r.
Y
;
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 (11)
242
int top = layout.Top + displayRect.
Y
;
244
int bottom = layout.Bottom + displayRect.
Y
;
320
if (bottom < top || cachedBounds.Height != element.Bounds.Height || cachedBounds.
Y
!= element.Bounds.
Y
)
401
Rectangle newElementBounds = new(remainingBounds.X, remainingBounds.
Y
, elementSize.Width, elementSize.Height);
427
Rectangle newElementBounds = new(remainingBounds.X, remainingBounds.
Y
, elementSize.Width, elementSize.Height);
440
Rectangle newElementBounds = new(remainingBounds.Right - elementSize.Width, remainingBounds.
Y
, elementSize.Width, elementSize.Height);
458
Rectangle newElementBounds = new(remainingBounds.X, remainingBounds.
Y
, elementSize.Width, elementSize.Height);
755
anchorInfo.Top -= parentDisplayRect.
Y
;
757
anchorInfo.Bottom -= parentDisplayRect.
Y
;
880
int y = elementBounds.
Y
;
System\Windows\Forms\Layout\FlowLayout.ContainerProxy.cs (2)
67
Point pt = new(value.X, value.
Y
);
145
Point pt = new(newBounds.X, newBounds.
Y
);
System\Windows\Forms\Layout\FlowLayout.cs (14)
76
Rectangle measureBounds = new(displayRect.X, displayRect.
Y
, displayRect.Width, displayRect.Height - layoutSize.Height);
87
layoutSize.Height + displayRect.
Y
,
322
Debug.Assert(container.Children[0].Bounds.
Y
== margin.Top + container.DisplayRectangle.
Y
);
327
Debug.Assert(container.Children[0].Bounds.
Y
== margin.Top + container.DisplayRectangle.
Y
);
330
Debug.Assert(container.Children[0].Bounds.
Y
== container.DisplayRectangle.
Y
+ container.DisplayRectangle.Height - container.Children[0].Bounds.Height - margin.Bottom);
343
Debug.Assert(collection[i].Bounds.
Y
>= container.DisplayRectangle.
Y
);
347
Debug.Assert(collection[i].Bounds.
Y
>= container.DisplayRectangle.
Y
);
351
Debug.Assert(collection[i].Bounds.
Y
+ collection[i].Bounds.Height <= container.DisplayRectangle.
Y
+ container.DisplayRectangle.Height);
System\Windows\Forms\Layout\LayoutUtils.cs (8)
248
if (rect1.
Y
<= rect2.
Y
&& rect1.
Y
+ rect1.Width >= rect2.
Y
+ rect2.Width)
254
if (rect2.
Y
<= rect1.
Y
&& rect2.
Y
+ rect2.Width >= rect1.
Y
+ rect1.Width)
System\Windows\Forms\MDI\MDIClient.cs (2)
196
int sy = (int)Math.Round(bounds.
Y
* dy);
198
int sh = (int)Math.Round((bounds.
Y
+ bounds.Height) * dy - sy);
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (10)
371
int starty = displayRect.
Y
+ (cellBorderWidth / 2);
388
outsideCellBounds.
Y
+ (cellBorderWidth + 1) / 2,
434
cellBorderWidth / 2 + displayRect.
Y
,
445
tableBounds.
Y
,
452
tableBounds.
Y
+ tableBounds.Height - 1,
454
tableBounds.
Y
+ tableBounds.Height - 1);
461
tableBounds.
Y
,
463
tableBounds.
Y
+ tableBounds.Height - 1);
467
tableBounds.
Y
+ tableBounds.Height - 1,
469
tableBounds.
Y
+ tableBounds.Height - 1);
System\Windows\Forms\Rendering\ControlPaint.cs (131)
110
if (bounds.
Y
>= 0)
481
partOfImageToDraw.
Y
,
491
new Point(imageRect.X - imageRectangle.X, imageRect.
Y
- imageRectangle.
Y
),
498
partOfImageToDraw.
Y
,
630
leftLineTops[leftOffset] = bounds.
Y
+ i + 1;
635
rightLineTops[rightOffset] = bounds.
Y
+ i;
641
leftLineTops[j] = bounds.
Y
+ i + 1;
646
rightLineTops[j] = bounds.
Y
+ i;
653
leftLineTops[i] = bounds.
Y
;
658
rightLineTops[i] = bounds.
Y
;
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;
723
hdc.DrawLine(hpen, topLineLefts[i], bounds.
Y
+ i, topLineRights[i] + 1, bounds.
Y
+ i);
738
graphics.DrawLine(pen, topLineLefts[i], bounds.
Y
+ i, topLineRights[i], bounds.
Y
+ i);
759
hdc.DrawLine(hpen, topLineLefts[i], bounds.
Y
+ i, topLineRights[i] + 1, bounds.
Y
+ i);
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);
1066
graphics.DrawLine(darkPen, bounds.X, bounds.
Y
, bounds.X + bounds.Width - 1, bounds.
Y
);
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);
1080
graphics.DrawLine(mediumPen, bounds.X + 1, bounds.
Y
+ 1, bounds.X + bounds.Width - 2, bounds.
Y
+ 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);
1105
graphics.DrawLine(lightPen, bounds.X, bounds.
Y
, bounds.X + bounds.Width - 1, bounds.
Y
);
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);
1125
graphics.DrawLine(topLeftPen, bounds.X + 1, bounds.
Y
+ 1, bounds.X + bounds.Width - 2, bounds.
Y
+ 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);
1283
graphics.DrawLine(pen, bounds.X + 1, bounds.
Y
, bounds.Right - 2, bounds.
Y
);
1285
graphics.DrawLine(pen, bounds.X, bounds.
Y
+ 1, bounds.X, bounds.Bottom - 2);
1286
graphics.DrawLine(pen, bounds.Right - 1, bounds.
Y
+ 1, bounds.Right - 1, bounds.Bottom - 2);
1289
int midy = bounds.
Y
+ bounds.Height / 2;
1292
graphics.DrawLine(pen, midx, bounds.
Y
, midx, bounds.Bottom - 2);
1298
graphics.DrawLine(pen, midx - 1, bounds.
Y
+ 2, midx + 1, bounds.
Y
+ 2);
1299
graphics.DrawLine(pen, midx - 2, bounds.
Y
+ 3, midx + 2, bounds.
Y
+ 3);
1350
rectangle.
Y
+ 1,
1390
graphics.DrawRectangle(pen, offsetRectangle.X, offsetRectangle.
Y
, offsetRectangle.Width - 1, offsetRectangle.Height - 1);
1421
GetFocusPen(color, (rectangle.X + rectangle.
Y
) % 2 == 1, highContrast, blackAndWhite),
1497
rectangle.
Y
+ 1,
1675
Point start = new(bounds.X + bounds.Width - 1, bounds.
Y
- 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);
1818
PInvoke.Rectangle(desktopDC, rectangle.X, rectangle.
Y
, rectangle.Right, rectangle.Bottom);
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);
2325
int y = bound.
Y
;
2368
g.DrawLine(SystemPens.Window, bound.X, bound.
Y
, bound.X + bound.Width - 1, bound.
Y
);
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);
2379
g.DrawLine(SystemPens.Window, bound.X, bound.
Y
, bound.X + bound.Width - 1, bound.
Y
);
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);
2387
g.DrawLine(SystemPens.ControlDark, bound.X, bound.
Y
, bound.X + bound.Width - 1, bound.
Y
);
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);
2399
g.DrawLine(SystemPens.ControlDark, bound.X, bound.
Y
, bound.X + bound.Width - 1, bound.
Y
);
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 (1)
93
bounds.Height -= bounds.
Y
;
System\Windows\Forms\Scrolling\HScrollProperties.cs (1)
21
private protected override int GetVerticalDisplayPosition(ScrollableControl parent) => parent.DisplayRectangle.
Y
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (29)
124
return new Point(rect.X, rect.
Y
);
198
rect.Y = _displayRect.
Y
;
462
int ctlBottom = -display.
Y
+ bounds.
Y
+ bounds.Height + _scrollMargin.Height;
560
_displayRect = new Rectangle(_displayRect.X, _displayRect.
Y
, HorizontalScroll.Maximum, _displayRect.Height);
565
_displayRect = new Rectangle(_displayRect.X, _displayRect.
Y
, _displayRect.Width, VerticalScroll.Maximum);
617
int pos = -_displayRect.
Y
;
639
SetDisplayRectLocation(-pos, _displayRect.
Y
);
783
if (displayRectangle.
Y
!= y)
785
yDelta = y - displayRectangle.
Y
;
856
int yCalc = _displayRect.
Y
;
885
if (bounds.
Y
< yMargin)
887
yCalc = _displayRect.
Y
+ yMargin - bounds.
Y
;
889
else if (bounds.
Y
+ bounds.Height + yMargin > client.Height)
891
yCalc = client.Height - (bounds.
Y
+ bounds.Height + yMargin - _displayRect.
Y
);
892
if (bounds.
Y
+ yCalc - _displayRect.
Y
< yMargin)
894
yCalc = _displayRect.
Y
+ yMargin - bounds.
Y
;
1000
int y = _displayRect.
Y
;
1069
int y = _displayRect.
Y
;
1201
if (-displayRect.
Y
>= VerticalScroll._minimum && -displayRect.
Y
< VerticalScroll._maximum)
1203
VerticalScroll._value = -displayRect.
Y
;
1222
VerticalScroll.Value = -displayRect.
Y
;
1268
int pos = -_displayRect.
Y
;
1432
SetDisplayRectLocation(-pos, _displayRect.
Y
);
System.Windows.Forms.Design (131)
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\DesignerActionPanel.EditorPropertyLine.cs (2)
352
editorLocation.Y += editorBounds.
Y
;
376
editorLocation.Y += editorBounds.
Y
;
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
36
Point pt = new(rect.X, rect.
Y
);
System\Drawing\Design\ColorEditor.ColorUI.cs (6)
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));
278
graphics.DrawString(value.Name, font, foreBrush, die.Bounds.X + 26, die.Bounds.
Y
);
312
rectTabControl.Height -= rectTabControl.
Y
;
314
_lbSystem.SetBounds(CMARGIN, rectTabControl.
Y
+ 2 * CMARGIN,
318
_pal.Location = new Point(0, rectTabControl.
Y
);
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\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\ContainerSelectorGlyph.cs (1)
26
_glyphBounds = new Rectangle(containerBounds.X + glyphOffset, containerBounds.
Y
- (int)(glyphSize * .5), glyphSize, glyphSize);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
714
int minRange = directionOffset.Y < 0 ? 0 : currentBounds.
Y
;
1100
_dragOffset = new Point(dragBounds.X - _dragOffset.X, dragBounds.
Y
- _dragOffset.Y);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
816
_graphicsTarget.DrawImage(_dragImage, newImageRect.X, newImageRect.
Y
);
1034
_dragComponents[i].draggedLocation.Y - _dragImageRect.
Y
,
1045
_originalDragImageLocation = new Point(_dragImageRect.X, _dragImageRect.
Y
);
System\Windows\Forms\Design\Behavior\GrabHandleGlyph.cs (5)
33
bounds = new Rectangle(controlBounds.X + DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, controlBounds.
Y
+ DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
38
bounds = new Rectangle(controlBounds.Right - DesignerUtils.s_handleOverlap, controlBounds.
Y
+ DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, DesignerUtils.s_handleSize, DesignerUtils.s_handleSize);
58
bounds = new Rectangle(controlBounds.X + (controlBounds.Width / 2) - (DesignerUtils.s_handleSize / 2), controlBounds.
Y
+ DesignerUtils.s_handleOverlap - DesignerUtils.s_handleSize, DesignerUtils.s_handleSize, 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);
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\LockedHandleGlyph.cs (1)
27
(controlBounds.
Y
+ DesignerUtils.s_lockHandleOverlap) - DesignerUtils.s_lockHandleHeight,
System\Windows\Forms\Design\Behavior\NoResizeHandleGlyph.cs (1)
36
controlBounds.
Y
- DesignerUtils.s_noResizeHandleSize,
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (6)
618
Rectangle controlBounds = new(_resizeComponents[0].resizeBounds.X, _resizeComponents[0].resizeBounds.
Y
,
689
yOffset = controlBounds.
Y
- mouseLoc.Y;
704
bounds.Y = Math.Min(baseBounds.Bottom - minHeight, baseBounds.
Y
- yOffset);
785
propTop.SetValue(_resizeComponents[i].resizeControl, bounds.
Y
);
793
control.SetBounds(bounds.X, bounds.
Y
, bounds.Width, bounds.Height, specified);
940
if (propTop is not null && _resizeComponents[i].resizeControl.Top != _resizeComponents[i].resizeBounds.
Y
)
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
351
Rectangle statusRect = new(newRectangle.X - adornerServiceOrigin.X, newRectangle.
Y
- adornerServiceOrigin.Y, 0, 0);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionGlyph.cs (8)
111
_glyphBounds = new Rectangle(bounds.X + x, bounds.
Y
+ bounds.Height, _imageWidth, _imageHeight);
120
_glyphBounds = new Rectangle(bounds.X + x, bounds.
Y
- _imageHeight, _imageWidth, _imageHeight);
129
_glyphBounds = new Rectangle(bounds.X + bounds.Width, bounds.
Y
+ y, _imageHeight, _imageWidth);
138
_glyphBounds = new Rectangle(bounds.X - _imageHeight, bounds.
Y
+ y, _imageHeight, _imageWidth);
160
_glyphBounds = new Rectangle(bounds.X + x, bounds.
Y
+ bounds.Height, _imageWidth, _imageHeight);
169
_glyphBounds = new Rectangle(bounds.X + x, bounds.
Y
- _imageHeight, _imageWidth, _imageHeight);
178
_glyphBounds = new Rectangle(bounds.X + bounds.Width, bounds.
Y
+ y, _imageHeight, _imageWidth);
187
_glyphBounds = new Rectangle(bounds.X - _imageHeight, bounds.
Y
+ y, _imageHeight, _imageWidth);
System\Windows\Forms\Design\ComponentTray.cs (5)
1832
Point newLoc = new(display.X + _whiteSpace.X, display.
Y
+ _whiteSpace.Y);
1860
Point newLoc = new(bounds.X + bounds.Width + _whiteSpace.X, bounds.
Y
);
2289
int y = rc.
Y
+ WhiteSpace;
2301
int y = rc.
Y
+ (rc.Height - _cyIcon) / 2;
2422
if (Math.Abs(bounds.X - x) > parentGridSize.Width || Math.Abs(bounds.
Y
- y) > parentGridSize.Height)
System\Windows\Forms\Design\ControlDesigner.cs (3)
2254
textRect.Y = imageRect.
Y
;
2256
textRect.Height -= (textRect.
Y
+ marginY + penThickness);
2285
e.Graphics.DrawIcon(err, imageRect.X, imageRect.
Y
);
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (4)
985
e.Bounds.
Y
+ OWNERDRAWITEMIMAGEBUFFER,
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\DesignerFrame.cs (1)
489
intersectionRegion.Translate(-overlayControlScreenBounds.X, -overlayControlScreenBounds.
Y
);
System\Windows\Forms\Design\DesignerUtils.cs (1)
578
newBounds.Y = originalBounds.
Y
- originalBounds.Height + e.Offset.Y;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (3)
271
if (flowDirection == FlowDirection.TopDown ? marginBounds.
Y
< lastOffset : marginBounds.
Y
> lastOffset)
286
lastOffset = marginBounds.
Y
;
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
27
return new Point(gb.DisplayRectangle.X, gb.DisplayRectangle.
Y
);
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (2)
113
defaultValues["Offset"] = new Size(childControl.Bounds.X - bounds.X, childControl.Bounds.
Y
- bounds.
Y
);
System\Windows\Forms\Design\OleDragDropHandler.cs (1)
445
PInvoke.Rectangle(dc, rectangle.X, rectangle.
Y
, rectangle.Right, rectangle.Bottom);
System\Windows\Forms\Design\ParentControlDesigner.cs (18)
576
Point pt = new(bounds.X, bounds.
Y
);
812
CreateToolCore(tool, bounds.X, bounds.
Y
, bounds.Width, bounds.Height, true, true);
1109
if (adjustedRect.
Y
< minimumLocation.Y)
1121
return new Point(r.X, r.
Y
);
1143
updatedRect.Y = originalRect.
Y
;
1157
if (dragRect.
Y
!= originalRect.
Y
)
1159
updatedRect.Y = (dragRect.
Y
/ gridSize.Height) * gridSize.Height;
1162
if (dragRect.
Y
- updatedRect.
Y
> halfGrid.Y)
1173
updatedRect.Height = ((dragRect.
Y
+ dragRect.Height) / gridSize.Height) * gridSize.Height - updatedRect.
Y
;
1784
offset.
Y
- _adornerWindowToScreenOffset.Y,
1976
_mouseDragOffset.
Y
- _adornerWindowToScreenOffset.Y,
2014
Point offset = new(_mouseDragOffset.X, _mouseDragOffset.
Y
);
2033
Math.Min(displayRect.
Y
, clientRect.
Y
),
2038
float xlateY = paintRect.
Y
;
System\Windows\Forms\Design\SelectionUIHandler.cs (7)
239
if (finalMove && offset is { X: 0,
Y
: 0, Width: 0, Height: 0 })
289
ctlBounds.lastRequestedY += offset.
Y
;
329
targetY = oldBounds.
Y
;
355
newBounds.Y = tempNewBounds.
Y
;
361
newBounds.Y = tempNewBounds.
Y
;
382
bool locChanged = (offset.X != 0 || offset.
Y
!= 0);
422
adjustedLoc.Y = newBounds.
Y
;
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (3)
36
Rectangle rect = new(_outerRect.X, _outerRect.
Y
, CONTAINER_WIDTH, CONTAINER_HEIGHT);
59
Rectangle glyphBounds = new(_outerRect.X, _outerRect.
Y
, CONTAINER_WIDTH, CONTAINER_HEIGHT);
72
Rectangle rect = new(_outerRect.X, _outerRect.
Y
, CONTAINER_WIDTH, CONTAINER_HEIGHT);
System\Windows\Forms\Design\SelectionUIService.cs (2)
693
delta.Y -= old.
Y
;
696
if (delta.X != 0 || delta.
Y
!= 0 || delta.Width != 0 || delta.Height != 0)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (25)
134
Rectangle rect = new(_outerRect.X, _outerRect.
Y
, GRABHANDLE_WIDTH, GRABHANDLE_HEIGHT);
160
rect.Y = inner.
Y
+ inner.Height;
169
rect.Y = outer.
Y
;
173
rect.Y = inner.
Y
+ (inner.Height - GRABHANDLE_HEIGHT) / 2;
250
if (pt.Y >= _outerRect.
Y
&& pt.Y <= _innerRect.
Y
)
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)
269
if (pt.Y >= _outerRect.
Y
&& pt.Y <= _innerRect.
Y
)
290
Debug.Assert(!(pt.Y >= _outerRect.
Y
&& pt.Y <= _innerRect.
Y
), "Should be handled by top right check");
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)
402
&& pt.Y > _innerRect.
Y
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\TableLayoutPanelDesigner.cs (3)
1024
offset = bounds.
Y
;
1030
else if (pos.Y > bounds.
Y
)
1124
startLoc = bounds.
Y
;// reset for the rows...
System\Windows\Forms\Design\TabOrder.cs (2)
286
graphics.DrawRectangle(pen, convertedRectangle.X, convertedRectangle.
Y
, convertedRectangle.Width - 1, convertedRectangle.Height - 1);
289
graphics.DrawString(str, font, foreBrush, convertedRectangle.X + 1, convertedRectangle.
Y
+ 1);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1820
if (offset.Y <= parentToolStrip.Items[0].Bounds.
Y
)
System\Windows\Forms\Design\ToolStripEditorManager.cs (1)
131
Location = new Point(bounds.X, bounds.
Y
);
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 (2)
System\Windows\Forms\Automation\UiaTextProvider.cs (2)
93
result[scan++] = rectArray[i].
Y
;
111
result[1] = bounds.
Y
;
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 (134)
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (1)
413
Assert.Equal(expectedPosition.Y, actual.
Y
);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (2)
55
Assert.True(accessibleObject.Bounds.
Y
>= 0);
90
Assert.True(accessibleObject.Bounds.
Y
>= 0);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (1)
665
Rectangle expectedBounds = new(subItem.Bounds.X, subItem.Bounds.
Y
, expectedWidth, expectedHeight)
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (10)
256
((rect.
Y
> gridViewRectangle.
Y
+ 1 && rect.
Y
< gridViewRectangle.Bottom - 1) ||
257
(rect.
Y
< gridViewRectangle.Bottom - 1 && rect.Bottom > gridViewRectangle.
Y
+ 1)); // +-1 are borders
269
((rect.
Y
> gridViewRectangle.
Y
+ 1 && rect.
Y
< gridViewRectangle.Bottom - 1) ||
270
(rect.
Y
< gridViewRectangle.Bottom - 1 && rect.Bottom > gridViewRectangle.
Y
+ 1)); // +-1 are borders
System\Windows\Forms\CheckBoxRendererTests.cs (1)
152
? Validate.PolyPolygon16(new(new(bounds.X, bounds.
Y
), new Size(-1, -1)))
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)
10401
Assert.Equal(0, control.ClientRectangle.
Y
);
10405
Assert.Equal(0, control.DisplayRectangle.
Y
);
10417
Assert.Equal(0, control.Bounds.
Y
);
10434
Assert.Equal(0, control.ClientRectangle.
Y
);
10438
Assert.Equal(0, control.DisplayRectangle.
Y
);
10450
Assert.Equal(0, control.Bounds.
Y
);
System\Windows\Forms\CursorTests.cs (4)
203
Assert.True(Cursor.Clip.
Y
>= 0);
267
Assert.True(position.Y >= virtualScreen.
Y
);
284
Cursor.Position = new Point(virtualScreen.X - 1, virtualScreen.
Y
- 1);
287
Assert.True(position.Y >= virtualScreen.
Y
);
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\Design\ComponentEditorFormTests.cs (2)
76
Assert.Equal(new Rectangle(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.
Y
, control.Width, control.Height), control.DesktopBounds);
77
Assert.Equal(new Point(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.
Y
), control.DesktopLocation);
System\Windows\Forms\FormTests.cs (3)
75
Assert.Equal(new Rectangle(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.
Y
, 300, 300), control.DesktopBounds);
76
Assert.Equal(new Point(-SystemInformation.WorkingArea.X, -SystemInformation.WorkingArea.
Y
), control.DesktopLocation);
79
Assert.Equal(0, control.DisplayRectangle.
Y
);
System\Windows\Forms\HScrollBarTests.cs (3)
29
Assert.Equal(0, control.Bounds.
Y
);
40
Assert.Equal(0, control.ClientRectangle.
Y
);
62
Assert.Equal(0, control.DisplayRectangle.
Y
);
System\Windows\Forms\HtmlElementTests.cs (1)
1157
Assert.Equal(element.ScrollTop, result.
Y
);
System\Windows\Forms\ListBoxTests.cs (6)
5332
Assert.True(rect1.
Y
>= 0);
5340
Assert.True(rect2.
Y
>= rect1.
Y
+ rect1.Height);
5362
Assert.True(rect1.
Y
>= 0);
5373
Assert.True(rect2.
Y
>= rect1.
Y
+ rect1.Height);
System\Windows\Forms\ListViewTests.cs (8)
4091
Assert.True(rect1.
Y
>= 0);
4098
Assert.True((rect2.X >= rect1.Right && rect2.
Y
== rect1.
Y
) || (rect2.X == rect1.X && rect2.
Y
>= rect1.Bottom));
4122
Assert.True(rect1.
Y
>= 0);
4132
Assert.True((rect2.X >= rect1.Right && rect2.
Y
== rect1.
Y
) || (rect2.X == rect1.X && rect2.
Y
>= rect1.Bottom));
System\Windows\Forms\MonthCalendarTests.cs (3)
38
Assert.Equal(0, control.Bounds.
Y
);
51
Assert.Equal(0, control.ClientRectangle.
Y
);
71
Assert.Equal(0, control.DisplayRectangle.
Y
);
System\Windows\Forms\RadioButtonRendererTests.cs (1)
141
? Validate.PolyPolygon16(new(new(bounds.X, bounds.
Y
), new Size(-1, -1)))
System\Windows\Forms\ScreenTests.cs (3)
216
Assert.InRange(screen.WorkingArea.
Y
, screen.Bounds.
Y
, screen.Bounds.
Y
+ screen.Bounds.Width);
System\Windows\Forms\SystemInformationTests.cs (1)
802
Assert.True(workingArea.
Y
>= 0);
System\Windows\Forms\TabControlTests.cs (12)
744
Assert.True(displayRectangle.
Y
>= 0);
746
Assert.Equal(100 - displayRectangle.
Y
* 2, control.DisplayRectangle.Height);
765
Assert.True(displayRectangle.
Y
>= 0);
767
Assert.Equal(100 - displayRectangle.
Y
* 2, control.DisplayRectangle.Height);
784
Assert.True(displayRectangle.
Y
>= 0);
786
Assert.Equal(100 - displayRectangle.
Y
* 2, control.DisplayRectangle.Height);
3661
Assert.True(rect1.
Y
>= 0);
3669
Assert.Equal(rect2.
Y
, rect1.
Y
);
3693
Assert.True(rect1.
Y
>= 0);
3701
Assert.Equal(rect2.
Y
, rect1.
Y
);
System\Windows\Forms\TabPageTests.cs (8)
2220
Assert.Equal(expected.
Y
, control.Top);
2221
Assert.Equal(expected.
Y
+ expected.Height, control.Bottom);
2250
Assert.Equal(expected.
Y
, control.Top);
2251
Assert.Equal(expected.
Y
+ expected.Height, control.Bottom);
4822
Assert.Equal(expected.
Y
, control.Top);
4823
Assert.Equal(expected.
Y
+ expected.Height, control.Bottom);
4852
Assert.Equal(expected.
Y
, control.Top);
4853
Assert.Equal(expected.
Y
+ expected.Height, control.Bottom);
System\Windows\Forms\ToolStripButtonTests.cs (4)
1303
Assert.True(e.ImageRectangle.
Y
>= 0);
1321
Assert.True(e.TextRectangle.
Y
>= 0);
1394
Assert.True(e.ImageRectangle.
Y
>= 0);
1412
Assert.True(e.TextRectangle.
Y
>= 0);
System\Windows\Forms\ToolStripDropDownTests.cs (1)
1932
expected.Y = Math.Max(expected.Y, SystemInformation.WorkingArea.
Y
);
System\Windows\Forms\ToolStripItemTests.cs (10)
7737
Assert.NotNull(owner.GetItemAt(item.Bounds.X, item.Bounds.
Y
));
7738
owner.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.
Y
, 0));
7775
Assert.NotNull(parent.GetItemAt(item.Bounds.X, item.Bounds.
Y
));
7776
parent.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.
Y
, 0));
7793
Assert.Same(item, parent.GetItemAt(item.Bounds.X, item.Bounds.
Y
));
7794
parent.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.
Y
, 0));
14431
Assert.NotNull(owner.GetItemAt(item.Bounds.X, item.Bounds.
Y
));
14432
owner.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.
Y
, 0));
14520
Assert.NotNull(parent.GetItemAt(item.Bounds.X, item.Bounds.
Y
));
14521
parent.OnMouseDown(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.
Y
, 0));
System\Windows\Forms\ToolStripSeparatorTests.cs (2)
1479
Assert.Equal(new Rectangle(2, bounds.
Y
, 57, bounds.Height), item.Bounds);
1489
Assert.Equal(new Rectangle(2, bounds.
Y
, 57, bounds.Height), item.Bounds);
System\Windows\Forms\ToolStripTests.cs (3)
101
Assert.Equal(0, control.GripRectangle.
Y
);
255
Assert.Equal(0, control.GripRectangle.
Y
);
5831
toolStrip.OnMouseMove(new MouseEventArgs(MouseButtons.Left, 1, item.Bounds.X, item.Bounds.
Y
, 0));
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
33
Rectangle bitBltBounds = new(bounds.X, bounds.
Y
, bounds.Width - 1, bounds.Height - 1);
System\Windows\Forms\TreeNodeCollectionTests.cs (1)
21
Assert.Equal(0, treeNode.Bounds.
Y
);
System\Windows\Forms\TreeNodeTests.cs (2)
458
Assert.Equal(0, bounds.
Y
);
480
Assert.Equal(0, bounds.
Y
);
System\Windows\Forms\VScrollBarTests.cs (3)
28
Assert.Equal(0, control.Bounds.
Y
);
39
Assert.Equal(0, control.ClientRectangle.
Y
);
61
Assert.Equal(0, control.DisplayRectangle.
Y
);
System.Windows.Forms.UI.IntegrationTests (9)
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);
251
Assert.Equal(expectedY, newButtonBounds.
Y
);
FormTests.cs (4)
70
Assert.True(form.Top <= screenWorkingArea.
Y
);
71
Assert.True(form.Top >= screenWorkingArea.
Y
- borderSize);
131
Assert.True(form.Top <= screenWorkingArea.
Y
);
132
Assert.True(form.Top >= screenWorkingArea.
Y
- borderSize);
Infra\ScreenshotService.cs (1)
67
sourceY: primaryScreen.Bounds.
Y
,
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
98
int y = sender.ClientRectangle.
Y
+ 1;