202 references to new
System.Drawing.Common.Tests (5)
DrawingTest.cs (1)
14
BitmapData data = bitmap.LockBits(new
Rectangle
(default, bitmap.Size), ImageLockMode.ReadWrite, bitmap.PixelFormat);
mono\System.Drawing\GraphicsTests.cs (2)
2876
Rectangle arcrect =
new
(baserect.Location, new Size(d, d));
2918
Rectangle arcrect =
new
(baserect.Location, new Size(d, d));
System\Drawing\GraphicsTests.cs (1)
252
VerifyGraphics(graphics, new
Rectangle
(Point.Empty, image.Size));
System\Drawing\Imaging\Effects\EffectsTests.cs (1)
13
graphics.FillRectangle(Brushes.White,
new
(default, bitmap.Size));
System.Windows.Forms (98)
System\Windows\Forms\Control.cs (2)
8740
PrintToMetaFileRecursive(hDC, lParam, new
Rectangle
(Point.Empty, Size));
8757
Rectangle clientBounds =
new
(clientOffset, ClientSize);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (4)
58
Rectangle glyphBounds =
new
(glyphLocation, GetGlyphSize(g, state));
79
Rectangle glyphBounds =
new
(glyphLocation, GetGlyphSize(hdc, state, hwnd));
123
Rectangle glyphBounds =
new
(glyphLocation, GetGlyphSize(g, state, hwnd));
192
Rectangle glyphBounds =
new
(glyphLocation, GetGlyphSize(g, state));
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (4)
60
Rectangle glyphBounds =
new
(glyphLocation, GetGlyphSize(hdc, state, hwnd));
80
glyphBounds = new
Rectangle
(glyphLocation, GetGlyphSize(hdc, state, hwnd));
130
glyphBounds = new
Rectangle
(glyphLocation, GetGlyphSize(hdc, state, hwnd));
219
glyphBounds = new
Rectangle
(glyphLocation, GetGlyphSize(hdc, state, hwnd));
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (1)
35
_outerBorder = new
Rectangle
(_clientRect.Location, new Size(_clientRect.Width - 1, _clientRect.Height - 1));
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
18821
Invalidate(new
Rectangle
(new Point(-pt.X, ColumnHeadersHeight), new Size(-step, ClientSize.Height)));
18831
Invalidate(new
Rectangle
(new Point(ClientSize.Width - (pt.X - rect.Right) - step, ColumnHeadersHeight),
18838
Invalidate(new
Rectangle
(new Point(0, -pt.Y),
18845
Invalidate(new
Rectangle
(new Point(0, ColumnHeadersHeight),
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (1)
1011
cellBounds = new
Rectangle
(new Point(0, 0), GetSize(rowIndex));
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (1)
346
return new
Rectangle
(GetTextLocation(cellBounds, sizeConstraint, flags, cellStyle), sizeConstraint);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1357
ControlPaint.PrintBorder(g, new
Rectangle
(Point.Empty, Size), BorderStyle, Border3DStyle.SunkenOuter);
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (3)
103
_ => new
Rectangle
(point, new Size(itemBounds.Width, itemBounds.Height)),
112
return new
Rectangle
(
131
return new
Rectangle
(point, new Size(Math.Min(textWidth, itemBounds.Width), itemBounds.Height));
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
3872
Rectangle comparisonRect =
new
(point, s_onePixel);
4069
item.SetBounds(new
Rectangle
(location, item.Size));
4510
cursorLocation = WindowsFormsUtils.ConstrainToScreenBounds(new
Rectangle
(cursorLocation, s_onePixel)).Location;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
995
Rectangle suggestedScreenBounds =
new
(screenPoint, suggestedBounds.Size);
1006
dropDownBounds = new
Rectangle
(parentClientPoint, suggestedBounds.Size);
1023
Rectangle dropDownBounds =
new
(Point.Empty, GetSuggestedSize());
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (3)
141
Rectangle ownerItemBounds =
new
(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size);
379
Rectangle dropDownBounds =
new
(Point.Empty, DropDown.GetSuggestedSize());
384
Rectangle itemScreenBounds =
new
(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (5)
421
_textRectangle = new
Rectangle
(nextPoint, maxTextSize);
426
_arrowRectangle = new
Rectangle
(nextPoint, maxArrowSize);
456
_textRectangle.Y = LayoutUtils.VAlign(_textRectangle.Size, new
Rectangle
(Point.Empty, _maxItemSize), ContentAlignment.MiddleCenter).Y;
798
UpScrollButton.SetBounds(new
Rectangle
(upLocation, upSize));
804
DownScrollButton.SetBounds(new
Rectangle
(downLocation, downSize));
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (8)
135
Rectangle bounds =
new
(Point.Empty, e.Item.Size);
187
Rectangle bounds =
new
(Point.Empty, menuItem.Size);
208
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new
Rectangle
(Point.Empty, item.Size), arrowColor, ArrowDirection.Down));
258
Rectangle bounds =
new
(Point.Empty, e.ToolStrip.Size);
287
Rectangle bounds =
new
(Point.Empty, e.ToolStrip.Size);
350
Rectangle bounds =
new
(Point.Empty, e.Item.Size);
410
Rectangle bounds =
new
(Point.Empty, e.Item.Size);
442
Rectangle bounds =
new
(Point.Empty, e.Item.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
2371
ParentInternal?.Invalidate(new
Rectangle
(rectangleLocation, r.Size), true);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
304
return new
Rectangle
(Owner.ParentInternal.PointToScreen(bounds.Location), bounds.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
99
Rectangle bounds =
new
(Point.Empty, _ownerItem.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
711
ControlPaint.DrawCaptionButton(g, new
Rectangle
(Point.Empty, image.Size), (CaptionButton)buttonToUse, ButtonState.Flat);
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
53
Rectangle bounds =
new
(Point.Empty, e.ToolStrip.Size);
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (25)
230
Rectangle bounds =
new
(Point.Empty, item.Size);
248
RenderSeparatorInternal(e.Graphics, e.Item, new
Rectangle
(Point.Empty, e.Item.Size), e.Vertical);
266
Rectangle bounds =
new
(Point.Empty, item.Size);
347
Rectangle bounds =
new
(Point.Empty, item?.Size ?? Size.Empty);
417
Rectangle bounds =
new
(Point.Empty, toolStrip.Size);
546
Rectangle bounds =
new
(Point.Empty, item.Size);
769
e.Graphics.DrawImage(image, imageRect, new
Rectangle
(Point.Empty, imageRect.Size), GraphicsUnit.Pixel);
846
Rectangle bounds =
new
(Point.Empty, toolStrip.Size);
860
Rectangle topLeftParentHorizontalPixels =
new
(topLeft, s_onePix);
861
Rectangle bottomLeftParentHorizontalPixels =
new
(bottomLeft, new Size(2, 1));
1108
Rectangle bounds =
new
(Point.Empty, item.Size);
1134
g.FillRectangle(brush, new
Rectangle
(Point.Empty, control.Size));
1141
Rectangle gradientBounds =
new
(Point.Empty, parent.Size);
1150
g.FillRectangle(b, new
Rectangle
(Point.Empty, control.Size));
1155
Rectangle gradientBounds =
new
(Point.Empty, control.Size);
1174
Rectangle bounds =
new
(Point.Empty, e.ToolStrip.Size);
1183
Rectangle bounds =
new
(Point.Empty, e.ToolStrip.Size);
1195
Rectangle bounds =
new
(Point.Empty, toolStripDropDown.Size);
1217
Rectangle overflowBoundsFill =
new
(Point.Empty, e.Item.Size);
1338
Rectangle bounds =
new
(Point.Empty, e.ToolStrip.Size);
1354
Rectangle topLeftShadowRect =
new
(topLeft, s_onePix);
1358
Rectangle topLeftShadowRect2 =
new
(topLeft, s_onePix);
1362
Rectangle topRightShadowRect =
new
(topRight, s_onePix);
1392
g.FillRectangle(brush, new
Rectangle
(gradientCopyPixel, s_onePix));
1567
Rectangle bounds =
new
(Point.Empty, item.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
797
e.Graphics.DrawImage(image, imageRect, new
Rectangle
(Point.Empty, imageRect.Size), GraphicsUnit.Pixel);
882
TextRenderer.DrawText(textGraphics, text, textFont, new
Rectangle
(Point.Empty, textSize), textColor, textFormat);
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (1)
109
Rectangle itemBounds =
new
(ToolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
301
Rectangle dropDownButtonBounds =
new
(Point.Empty, new Size(Math.Min(Width, DropDownButtonWidth), Height));
307
Rectangle splitButtonButtonBounds =
new
(Point.Empty, new Size(splitButtonButtonWidth, splitButtonButtonHeight));
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
495
Rectangle itemBounds =
new
(itemLocation, itemSize);
517
item.SetBounds(new
Rectangle
(itemLocation, itemSize));
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (9)
279
Rectangle bounds =
new
(Point.Empty, e.GripBounds.Size);
388
vsRenderer.DrawBackground(g, new
Rectangle
(Point.Empty, item.Size));
394
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new
Rectangle
(Point.Empty, item.Size), arrowColor, ArrowDirection.Down));
421
Rectangle bounds =
new
(Point.Empty, item.Size);
444
Rectangle fillRect =
new
(Point.Empty, item.Size);
490
RenderSeparatorInternal(e.Graphics, e.Item, new
Rectangle
(Point.Empty, e.Item.Size), e.Vertical);
530
Rectangle bounds =
new
(Point.Empty, splitButton.Size);
656
vsRenderer.DrawBackground(g, new
Rectangle
(Point.Empty, item.Size));
668
RenderSmall3DBorderInternal(g, new
Rectangle
(Point.Empty, item.Size), state, (item.RightToLeft == RightToLeft.Yes));
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2830
bounds = new
Rectangle
(textLoc, new Size(textSize.Width, bounds.Height));
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
837
Rectangle clientArea =
new
(Point.Empty, ClientSize);
System\Windows\Forms\Layout\DefaultLayout.cs (1)
99
Rectangle newBounds =
new
(location, newSize);
System\Windows\Forms\Layout\FlowLayout.cs (2)
25
Rectangle measureBounds =
new
(new Point(0, 0), proposedConstraints);
226
Rectangle cellBounds =
new
(location, new Size(requiredSize.Width, rowBounds.Height));
System\Windows\Forms\Panels\Panel.cs (1)
234
ControlPaint.PrintBorder(g, new
Rectangle
(Point.Empty, Size), BorderStyle, Border3DStyle.Sunken);
System\Windows\Forms\Rendering\ControlPaint.cs (2)
476
Rectangle partOfImageToDraw =
new
(Point.Empty, imageRect.Size);
490
Rectangle partOfImageToDraw =
new
(
System\Windows\Forms\Rendering\TextRenderer.cs (1)
287
=> DrawTextInternal(dc, text, font, new
Rectangle
(pt, MaxSize), foreColor, backColor, flags);
System.Windows.Forms.Design (27)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (3)
279
ActionPanel.Invalidate(new
Rectangle
(EditRegionLocation, EditRegionSize), false);
344
Rectangle editorBounds =
new
(Point.Empty, EditRegionSize);
368
Rectangle editorBounds =
new
(Point.Empty, EditRegionSize);
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
290
Rectangle editRect =
new
(EditRegionRelativeLocation, EditRegionSize);
System\ComponentModel\Design\DesignerActionUI.cs (2)
616
if ((new
Rectangle
(glyphCoord, new Size(currentGlyph.Bounds.Width, currentGlyph.Bounds.Height))).Contains(point))
656
Rectangle rectGlyph =
new
(glyphLocationScreenCoord, glyph.Bounds.Size);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
302
return new
Rectangle
(loc, c.Size);
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
689
Rectangle currentBounds =
new
(_behaviorService.ControlToAdornerWindow(targetControl), targetControl.Size);
1087
Rectangle dragBounds =
new
(_behaviorService.ControlToAdornerWindow(targetControl), targetControl.Size);
System\Windows\Forms\Design\Behavior\ToolStripPanelSelectionBehavior.cs (1)
119
Rectangle translatedBounds =
new
(loc, parent.Size);
System\Windows\Forms\Design\ControlDesigner.cs (2)
2118
Rectangle controlScreenBounds =
new
(parent.PointToScreen(Control.Location), Control.Size);
2119
Rectangle clientAreaScreenBounds =
new
(Control.PointToScreen(Point.Empty), Control.ClientSize);
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
1863
Rectangle rect =
new
(ClientRectangle.Location, ClientRectangle.Size);
System\Windows\Forms\Design\DesignerFrame.cs (1)
466
Rectangle invalidateRect =
new
(overlayControl.PointToClient(screenRectangle.Location), screenRectangle.Size);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
513
Rectangle translatedBounds =
new
(loc, ((Control)Component).Size);
System\Windows\Forms\Design\ParentControlDesigner.cs (2)
1042
Rectangle translatedBounds =
new
(loc, ((Control)Component).Size);
1238
Rectangle bounds =
new
((Point)defaultValues["Location"], (Size)defaultValues["Size"]);
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (3)
970
Rectangle bounds =
new
(startingPoint, Table.DisplayRectangle.Size);
1076
Rectangle bounds =
new
(loc, Table.DisplayRectangle.Size);
1079
Rectangle checkBounds =
new
(controlLoc, Control.ClientSize); // Can't use Control.Size since that will include any scrollbar
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
1369
Rectangle translatedBounds =
new
(loc, ((Control)Component).Size);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
991
parentDesigner.DragBoxFromMouseDown = _dragBoxFromMouseDown = new
Rectangle
(new Point(mouseLoc.X - (dragSize.Width / 2), mouseLoc.Y - (dragSize.Height / 2)), dragSize);
1014
ownerItemDesigner._dragBoxFromMouseDown = _dragBoxFromMouseDown = new
Rectangle
(new Point(mouseLoc.X - (dragSize.Width / 2), mouseLoc.Y - (dragSize.Height / 2)), dragSize);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (4)
1307
Rectangle translatedBounds =
new
(loc, _miniToolStrip.Size);
1871
Rectangle bounds =
new
(Point.Empty, e.ToolStrip.Size);
1886
Rectangle bounds =
new
(Point.Empty, item.Size);
1982
Rectangle bounds =
new
(Point.Empty, splitButton.Size);
System.Windows.Forms.Tests (68)
System\Windows\Forms\CheckBoxRendererTests.cs (1)
152
? Validate.PolyPolygon16(
new
(new(bounds.X, bounds.Y), new Size(-1, -1)))
System\Windows\Forms\ControlTests.Methods.cs (18)
9783
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
9784
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
9786
Assert.Equal(new
Rectangle
(Point.Empty, value), control.Bounds);
9793
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
9794
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
9796
Assert.Equal(new
Rectangle
(Point.Empty, value), control.Bounds);
9817
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
9818
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
9826
Assert.Equal(new
Rectangle
(Point.Empty, expectedSize), control.Bounds);
9833
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
9834
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
9842
Assert.Equal(new
Rectangle
(Point.Empty, expectedSize), control.Bounds);
9865
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
9866
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
9874
Assert.Equal(new
Rectangle
(Point.Empty, expectedSize), control.Bounds);
9884
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
9885
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
9893
Assert.Equal(new
Rectangle
(Point.Empty, expectedSize), control.Bounds);
System\Windows\Forms\ControlTests.Properties.cs (18)
3338
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
3339
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
3341
Assert.Equal(new
Rectangle
(Point.Empty, value), control.Bounds);
3348
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
3349
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
3351
Assert.Equal(new
Rectangle
(Point.Empty, value), control.Bounds);
3382
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
3383
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
3391
Assert.Equal(new
Rectangle
(Point.Empty, expectedSize), control.Bounds);
3398
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
3399
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
3407
Assert.Equal(new
Rectangle
(Point.Empty, expectedSize), control.Bounds);
3445
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
3446
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
3454
Assert.Equal(new
Rectangle
(Point.Empty, expectedSize), control.Bounds);
3464
Assert.Equal(new
Rectangle
(Point.Empty, value), control.ClientRectangle);
3465
Assert.Equal(new
Rectangle
(Point.Empty, value), control.DisplayRectangle);
3473
Assert.Equal(new
Rectangle
(Point.Empty, expectedSize), control.Bounds);
System\Windows\Forms\CursorTests.cs (4)
398
Assert.Throws<ArgumentNullException>("graphics", () => cursor.Draw(null, new
Rectangle
(Point.Empty, cursor.Size)));
408
Assert.Throws<ArgumentException>(() => cursor.Draw(graphics, new
Rectangle
(Point.Empty, cursor.Size)));
435
Assert.Throws<ArgumentNullException>("graphics", () => cursor.DrawStretched(null, new
Rectangle
(Point.Empty, cursor.Size)));
445
Assert.Throws<ArgumentException>(() => cursor.DrawStretched(graphics, new
Rectangle
(Point.Empty, cursor.Size)));
System\Windows\Forms\MonthCalendarTests.cs (12)
2527
Assert.Equal(new
Rectangle
(Point.Empty, size), control.ClientRectangle);
2528
Assert.Equal(new
Rectangle
(Point.Empty, size), control.DisplayRectangle);
2530
Assert.Equal(new
Rectangle
(Point.Empty, size), control.Bounds);
2536
Assert.Equal(new
Rectangle
(Point.Empty, size), control.ClientRectangle);
2537
Assert.Equal(new
Rectangle
(Point.Empty, size), control.DisplayRectangle);
2539
Assert.Equal(new
Rectangle
(Point.Empty, size), control.Bounds);
2560
Assert.Equal(new
Rectangle
(Point.Empty, size), control.ClientRectangle);
2561
Assert.Equal(new
Rectangle
(Point.Empty, size), control.DisplayRectangle);
2563
Assert.Equal(new
Rectangle
(Point.Empty, size), control.Bounds);
2572
Assert.Equal(new
Rectangle
(Point.Empty, size), control.ClientRectangle);
2573
Assert.Equal(new
Rectangle
(Point.Empty, size), control.DisplayRectangle);
2575
Assert.Equal(new
Rectangle
(Point.Empty, size), control.Bounds);
System\Windows\Forms\RadioButtonRendererTests.cs (1)
141
? Validate.PolyPolygon16(
new
(new(bounds.X, bounds.Y), new Size(-1, -1)))
System\Windows\Forms\ScrollableControlTests.cs (2)
2419
Assert.Equal(new
Rectangle
(expectedDisplayRectangleLocation, child.ExpectedSize.Size), child.Bounds);
2552
public Rectangle ExpectedSize =>
new
(new Point(0, 0), DefaultSize);
System\Windows\Forms\TextBoxRendererTests.cs (3)
44
? Validate.Polygon16(
new
(new(1, 1), new(bounds.Width - 2, bounds.Height - 2)))
74
? Validate.Polygon16(
new
(new(1, 1), new(bounds.Width - 2, bounds.Height - 2)))
110
? Validate.Polygon16(
new
(new(1, 1), new(bounds.Width - 2, bounds.Height - 2)))
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (1)
50
Assert.Equal(new
Rectangle
(Point.Empty, toolStrip.Size), e.AffectedBounds);
System\Windows\Forms\ToolStripTests.cs (8)
6705
Assert.Equal(new
Rectangle
(expectedItem1Location, oldBounds1.Size), item1.Bounds);
6706
Assert.Equal(new
Rectangle
(expectedItem2Location, oldBounds2.Size), item2.Bounds);
6757
Assert.Equal(new
Rectangle
(expectedItem1Location, oldBounds1.Size), item1.Bounds);
6758
Assert.Equal(new
Rectangle
(expectedItem2Location, oldBounds2.Size), item2.Bounds);
7020
Assert.Equal(new
Rectangle
(location, oldBounds.Size), item.Bounds);
7027
Assert.Equal(new
Rectangle
(location, oldBounds.Size), item.Bounds);
7069
Assert.Equal(new
Rectangle
(location, oldBounds.Size), item.Bounds);
7079
Assert.Equal(new
Rectangle
(location, oldBounds.Size), item.Bounds);
System.Windows.Forms.UI.IntegrationTests (2)
DragDropTests.cs (1)
720
_dragBoxFromMouseDown = new
Rectangle
(
Infra\ScreenshotService.cs (1)
75
Rectangle bounds =
new
(Cursor.Position - (Size)cursor.HotSpot, cursor.Size);
WinFormsControlsTest (2)
ListViewTest.cs (1)
57
Bounds = new
Rectangle
(new Point(0, 0), new Size(400, 200)),
MultipleControls.cs (1)
22
Bounds = new
Rectangle
(new Point(0, 0), new Size(400, 200)),