Implemented interface member:
property
Bounds
System.Windows.Forms.Layout.IArrangedElement.Bounds
129 writes to Bounds
System.Windows.Forms (29)
System\Windows\Forms\ActiveX\AxHost.cs (3)
1417
Bounds
= b;
3259
Bounds
= new Rectangle(location.X, location.Y, ocxExtent.Width, ocxExtent.Height);
3266
Bounds
= new Rectangle(location.X, location.Y, newSize.Width, newSize.Height);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1780
_control.
Bounds
= posRect;
System\Windows\Forms\ContextMenuStrip.cs (1)
57
contextMenuStrip.
Bounds
= Bounds;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
10324
_horizScrollBar.
Bounds
= new Rectangle(
10365
_vertScrollBar.
Bounds
= new Rectangle(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1976
ScrollBar.
Bounds
= boundsScroll;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
468
Bounds
= newBounds;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
418
spd._target.
Bounds
= bounds;
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
48
tabPage.
Bounds
= _owner.DisplayRectangle;
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1617
pages[i].
Bounds
= rect;
1822
tabPages[index].
Bounds
= DisplayRectangle;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
271
RTLGrip.
Bounds
= SizeGripBounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
435
_dropDown.
Bounds
= GetDropDownBounds(DropDownDirection);
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.FeedbackRectangle.FeedbackDropDown.cs (1)
26
Bounds
= bounds;
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (2)
884
_upDownEdit.
Bounds
= upDownEditBounds;
889
_upDownButtons.
Bounds
= upDownButtonsBounds;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
791
Bounds
= new Rectangle(location.X, location.Y, extent.Width, extent.Height);
System\Windows\Forms\Design\ComponentEditorForm.cs (8)
237
_pageHost.
Bounds
= pageHostBounds;
238
grayStrip.
Bounds
= new Rectangle(pageHostBounds.X, BUTTON_PAD,
247
page.GetControl().
Bounds
= pageBounds;
258
_selector.
Bounds
= new Rectangle(BUTTON_PAD, BUTTON_PAD,
266
_helpButton.
Bounds
= bounds;
273
_applyButton.
Bounds
= bounds;
280
_cancelButton.
Bounds
= bounds;
287
_okButton.
Bounds
= bounds;
System\Windows\Forms\Form.cs (2)
3072
Bounds
= bounds;
3085
Bounds
= bounds;
System.Windows.Forms.Design (6)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
317
_lbCommon.
Bounds
= _lbSystem.Bounds;
System\Windows\Forms\Design\ComponentTray.cs (1)
2005
Bounds
= rc;
System\Windows\Forms\Design\DesignerFrame.cs (2)
396
c.
Bounds
= client;
426
control.
Bounds
= DisplayRectangle;
System\Windows\Forms\Design\SelectionUIHandler.cs (2)
110
controls[i].
Bounds
= b;
405
controls[i].
Bounds
= newBounds;
System.Windows.Forms.Tests (92)
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
144
Bounds
= expected
System\Windows\Forms\ComboBoxTests.cs (4)
1828
Bounds
= new Rectangle(1, 2, 30, 40)
1910
Bounds
= new Rectangle(1, 2, 30, 40)
2012
Bounds
= new Rectangle(1, 2, 30, 40)
2116
Bounds
= new Rectangle(1, 2, 30, 40)
System\Windows\Forms\ControlTests.Handlers.cs (7)
3891
Bounds
= new Rectangle(1, 2, 30, 40)
3895
Bounds
= new Rectangle(1, 2, 30, 40)
3932
Bounds
= new Rectangle(1, 2, 30, 40)
3936
Bounds
= new Rectangle(1, 2, 30, 40)
3982
Bounds
= new Rectangle(1, 2, 10, 20),
4109
Bounds
= new Rectangle(1, 2, 30, 40)
4113
Bounds
= new Rectangle(1, 2, 10, 20),
System\Windows\Forms\ControlTests.Methods.cs (7)
2384
Bounds
= new Rectangle(1, 2, 30, 40)
10510
Bounds
= new Rectangle(1, 2, 3, 4)
10597
Bounds
= new Rectangle(10, 20, 30, 40)
10601
Bounds
= new Rectangle(1, 2, 3, 4),
10786
Bounds
= new Rectangle(1, 2, 3, 4)
10853
Bounds
= new Rectangle(10, 20, 30, 40)
10857
Bounds
= new Rectangle(1, 2, 3, 4),
System\Windows\Forms\ControlTests.Properties.cs (12)
2477
control.
Bounds
= new Rectangle(x, y, width, height);
2496
control.
Bounds
= new Rectangle(x, y, width, height);
2566
control.
Bounds
= new Rectangle(x, y, width, height);
2585
control.
Bounds
= new Rectangle(x, y, width, height);
2651
control.
Bounds
= new Rectangle(x, y, width, height);
2670
control.
Bounds
= new Rectangle(x, y, width, height);
2756
control.
Bounds
= new Rectangle(x, y, width, height);
2776
control.
Bounds
= new Rectangle(x, y, width, height);
2856
control.
Bounds
= new Rectangle(x, y, width, height);
2878
control.
Bounds
= new Rectangle(x, y, width, height);
2981
control.
Bounds
= new Rectangle(x, y, width, height);
3008
control.
Bounds
= new Rectangle(x, y, width, height);
System\Windows\Forms\ScrollableControlTests.cs (7)
1570
Bounds
= new Rectangle(1, 2, 30, 40)
1574
Bounds
= new Rectangle(1, 2, 30, 40)
1665
Bounds
= new Rectangle(1, 2, 30, 40)
1669
Bounds
= new Rectangle(1, 2, 30, 40)
1683
Bounds
= new Rectangle(1, 2, 10, 20),
1823
Bounds
= new Rectangle(1, 2, 30, 40)
1827
Bounds
= new Rectangle(1, 2, 10, 20),
System\Windows\Forms\SplitterTests.cs (9)
1204
Bounds
= new Rectangle(10, 10, 50, 50)
1248
Bounds
= new Rectangle(0, 0, 0, 100)
1254
Bounds
= new Rectangle(50, 0, 3, 3)
1367
Bounds
= new Rectangle(0, 0, 0, 100)
1373
Bounds
= new Rectangle(50, 0, 3, 3)
2015
Bounds
= new Rectangle(0, 0, 0, 100)
2021
Bounds
= new Rectangle(50, 0, 3, 3)
2116
Bounds
= new Rectangle(0, 0, 0, 100)
2122
Bounds
= new Rectangle(50, 0, 3, 3)
System\Windows\Forms\TabControl.ControlCollectionTests.cs (8)
43
Bounds
= new Rectangle(0, 0, 400, 300)
166
Bounds
= new Rectangle(0, 0, 400, 300)
326
Bounds
= new Rectangle(0, 0, 400, 300)
467
Bounds
= new Rectangle(0, 0, 400, 300)
892
Bounds
= new Rectangle(0, 0, 400, 300)
990
Bounds
= new Rectangle(0, 0, 400, 300)
1117
Bounds
= new Rectangle(0, 0, 400, 300)
1229
Bounds
= new Rectangle(0, 0, 400, 300)
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (15)
28
Bounds
= new Rectangle(0, 0, 400, 300)
154
Bounds
= new Rectangle(0, 0, 400, 300)
317
Bounds
= new Rectangle(0, 0, 400, 300)
461
Bounds
= new Rectangle(0, 0, 400, 300)
975
Bounds
= new Rectangle(0, 0, 400, 300)
1970
Bounds
= new Rectangle(0, 0, 400, 300)
2091
Bounds
= new Rectangle(0, 0, 400, 300)
2260
Bounds
= new Rectangle(0, 0, 400, 300)
2410
Bounds
= new Rectangle(0, 0, 400, 300)
3015
Bounds
= new Rectangle(0, 0, 400, 300)
3978
Bounds
= new Rectangle(0, 0, 400, 300)
4079
Bounds
= new Rectangle(0, 0, 400, 300)
4209
Bounds
= new Rectangle(0, 0, 400, 300)
4326
Bounds
= new Rectangle(0, 0, 400, 300)
4699
Bounds
= new Rectangle(0, 0, 400, 300)
System\Windows\Forms\TabPageTests.cs (4)
4052
Bounds
= new Rectangle(1, 2, 30, 40),
4057
Bounds
= new Rectangle(1, 2, 10, 20),
4191
Bounds
= new Rectangle(1, 2, 30, 40),
4196
Bounds
= new Rectangle(1, 2, 10, 20),
System\Windows\Forms\ToolStripControlHostTests.cs (6)
30
Bounds
= new Rectangle(1, 2, 3, 4),
700
Bounds
= new Rectangle(10, 20, 30, 40)
2206
Bounds
= new Rectangle(1, 2, 3, 4)
2770
Bounds
= new Rectangle(10, 20, 30, 40)
2858
Bounds
= new Rectangle(1, 2, 3, 4)
3847
Bounds
= new Rectangle(1, 2, 3, 4)
System\Windows\Forms\ToolStripTests.cs (7)
5912
Bounds
= new Rectangle(1, 2, 30, 40)
5916
Bounds
= new Rectangle(1, 2, 30, 40)
5960
Bounds
= new Rectangle(1, 2, 30, 40)
5964
Bounds
= new Rectangle(1, 2, 30, 40)
6024
Bounds
= new Rectangle(0, 0, 30, 25),
6162
Bounds
= new Rectangle(1, 2, 30, 40)
6166
Bounds
= new Rectangle(0, 0, 30, 25),
System\Windows\Forms\UpDownBaseTests.cs (1)
1609
Bounds
= new Rectangle(1, 2, 30, 40)
WebBrowserBaseTests.cs (4)
74
control.
Bounds
= new Rectangle(x, y, width, height);
93
control.
Bounds
= new Rectangle(x, y, width, height);
190
control.
Bounds
= new Rectangle(x, y, width, height);
212
control.
Bounds
= new Rectangle(x, y, width, height);
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)),
625 references to Bounds
System.Windows.Forms (77)
System\Windows\Forms\ActiveX\AxHost.cs (3)
1199
Rectangle oldBounds =
Bounds
;
1411
Rectangle b =
Bounds
;
2150
RECT posRect =
Bounds
;
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
390
*lprcPosRect = _host.
Bounds
;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1701
Rectangle bounds = _control.
Bounds
;
System\Windows\Forms\ContextMenuStrip.cs (1)
57
contextMenuStrip.Bounds =
Bounds
;
System\Windows\Forms\Control.cs (4)
4482
originalBounds =
Bounds
;
4529
if (
Bounds
!= originalBounds)
8771
child.PrintToMetaFileRecursive(hDC, lParam, child.
Bounds
);
9713
Rectangle rawScaledBounds = GetScaledBounds(
Bounds
, factor, specified);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3737
using RegionScope windowRegion = new(
Bounds
);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
2177
return EditingControl.
Bounds
.Contains(ptMouse);
2191
return _editingPanel.
Bounds
.Contains(ptMouse);
2205
if (_vertScrollBar.
Bounds
.Contains(ptMouse))
2213
return _horizScrollBar.
Bounds
.Contains(ptMouse);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
9296
if (_horizScrollBar is not null && _horizScrollBar.Visible && _horizScrollBar.
Bounds
.Contains(x, y))
9302
if (_vertScrollBar is not null && _vertScrollBar.Visible && _vertScrollBar.
Bounds
.Contains(x, y))
10439
&& _editingPanel.
Bounds
.IntersectsWith(lastSplitBarRect))
10507
&& _editingPanel.
Bounds
.IntersectsWith(lastSplitBarRect))
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1653
Rectangle oldBounds =
Bounds
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
880
Rectangle rectCur = control.
Bounds
;
1972
Rectangle boundsScroll = ScrollBar.
Bounds
;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (3)
398
_dragBaseRect =
Bounds
;
430
Rectangle newBounds =
Bounds
;
463
if (newBounds !=
Bounds
)
System\Windows\Forms\Controls\Splitter\Splitter.cs (6)
399
Rectangle bounds = spd._target.
Bounds
;
558
Rectangle r =
Bounds
;
559
Rectangle bounds = splitTarget.
Bounds
;
610
Rectangle r = target.
Bounds
;
633
_initTargetSize = target.
Bounds
.Width;
637
_initTargetSize = target.
Bounds
.Height;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
364
RECT rect =
Bounds
;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (4)
39
SetBounds(c.
Bounds
);
362
specifiedBounds = _control.
Bounds
;
372
Rectangle bounds = _control.
Bounds
;
658
if (bounds != _control.
Bounds
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
552
return Screen.GetWorkingArea(
Bounds
).Size - Padding.Size;
1201
Rectangle bounds =
Bounds
;
1709
Rectangle bounds =
Bounds
;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
801
int height = GetDropDownBounds(
Bounds
).Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (4)
1088
Rectangle intersection = c1.
Bounds
;
1089
intersection.Intersect(c2.
Bounds
);
1105
{c1.Name ?? ""}: {c1.
Bounds
} row {GetRow(draggedToolStrip1, RowsInternal)} row bounds {draggedToolStrip1.ToolStripPanelRow?.Bounds}
1106
{c2.Name ?? ""}: {c2.
Bounds
} row {GetRow(draggedToolStrip2, RowsInternal)} row bounds {draggedToolStrip2.ToolStripPanelRow?.Bounds}");
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelControlCollection.XYComparer.cs (6)
26
if (one.
Bounds
.X < two.
Bounds
.X)
31
if (one.
Bounds
.X == two.
Bounds
.X)
33
return one.
Bounds
.Y < two.
Bounds
.Y ? -1 : 1;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelControlCollection.YXComparer.cs (6)
27
if (one.
Bounds
.Y < two.
Bounds
.Y)
32
if (one.
Bounds
.Y == two.
Bounds
.Y)
34
return one.
Bounds
.X < two.
Bounds
.X ? -1 : 1;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
393
Rectangle r =
Bounds
;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2965
else if (tn is not null && tn.Bounds.Right >
Bounds
.Right)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
518
Rectangle editBounds = _upDownEdit.
Bounds
;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (1)
37
Rectangle bounds = owner.
Bounds
;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
671
RECT posRect =
Bounds
;
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (3)
195
RECT posRect = Host.
Bounds
;
232
RECT posRect = Host.
Bounds
;
263
*lprcPosRect = Host.
Bounds
;
System\Windows\Forms\Form.AccessibleObject.cs (2)
28
: owner.Parent?.RectangleToScreen(owner.
Bounds
) ?? owner.
Bounds
;
System\Windows\Forms\Form.cs (4)
900
Rectangle bounds =
Bounds
;
1316
Rectangle bounds =
Bounds
;
1680
return
Bounds
;
3047
Rectangle bounds =
Bounds
;
System\Windows\Forms\Layout\CommonProperties.cs (1)
265
/// <see cref="Control.Width"/>, <see cref="Control.Height"/>, <see cref="Control.
Bounds
"/>, property. (Its the
System\Windows\Forms\MDI\MDIClient.cs (4)
194
Rectangle bounds =
Bounds
;
230
Rectangle oldBounds =
Bounds
;
232
Rectangle newBounds =
Bounds
;
289
Rectangle bounds =
Bounds
;
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
460
Rectangle bounds = current.
Bounds
;
860
Rectangle bounds = activeControl.
Bounds
;
System.Windows.Forms.Design (62)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
179
if (Parent is not null &&
Bounds
.Contains(Parent.PointToClient(Cursor.Position)) && !_dropDownRectangle.Contains(mevent.Location))
282
if (Parent is not null &&
Bounds
.Contains(Parent.PointToClient(Cursor.Position)))
System\ComponentModel\Design\DesignerActionPanel.cs (1)
474
Rectangle rect =
Bounds
;
System\ComponentModel\Design\DesignerActionUI.cs (1)
198
Rectangle trayBounds = trayControl.
Bounds
;
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
322
if (me.Button == MouseButtons.Left &&
Bounds
.Contains(me.X, me.Y))
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
317
_lbCommon.Bounds = _lbSystem.
Bounds
;
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (1)
150
_alternativeBounds = trayControl.
Bounds
;
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (2)
200
Rectangle controlBounds = controlDesigner.Control.
Bounds
;
477
!clipBounds.IntersectsWith(control.
Bounds
) || // has to be partially visible on the rootcomp's surface
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (4)
210
_resizeComponents[i].resizeBounds = _resizeComponents[i].resizeControl.
Bounds
;
636
Rectangle bounds = control.
Bounds
;
806
if (control.
Bounds
== oldBounds)
818
if (control.
Bounds
!= bounds)
System\Windows\Forms\Design\CommandSet.cs (2)
3309
Rectangle childBounds = child.
Bounds
;
3332
Rectangle pasteControlBounds = pasteControl.
Bounds
;
System\Windows\Forms\Design\ComponentTray.cs (7)
199
Rectangle bounds = control.
Bounds
;
1381
Rectangle bounds = child.
Bounds
;
1457
Rectangle innerRect = c.
Bounds
;
1859
Rectangle bounds = prevCtl.
Bounds
;
1992
Rectangle rc =
Bounds
;
2420
Rectangle bounds =
Bounds
;
2763
desGlyph.UpdateAlternativeBounds(trayControl.
Bounds
);
System\Windows\Forms\Design\ControlCommandSet.cs (1)
720
Rectangle newRect = parentDesigner.GetSnappedRect(primaryControl.
Bounds
, dragRect, true);
System\Windows\Forms\Design\DesignerFrame.cs (1)
483
Rectangle overlayControlScreenBounds = overlayControl.
Bounds
;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
149
var bounds = control.
Bounds
;
201
var bounds = currentControl.
Bounds
;
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (4)
104
bounds = bounds.IsEmpty ? childControl.
Bounds
: Rectangle.Union(bounds, childControl.
Bounds
);
113
defaultValues["Offset"] = new Size(childControl.
Bounds
.X - bounds.X, childControl.
Bounds
.Y - bounds.Y);
System\Windows\Forms\Design\OleDragDropHandler.cs (4)
368
newRect = comp.
Bounds
;
380
newRect = _selectionHandler.GetUpdatedRect(comp.
Bounds
, newRect, false);
390
newRect = comp.
Bounds
;
401
newRect = _selectionHandler.GetUpdatedRect(comp.
Bounds
, newRect, false);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
874
Rectangle bounds = child.
Bounds
;
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
303
Rectangle oldBounds = controls[i].
Bounds
;
System\Windows\Forms\Design\StatusCommandUI.cs (2)
48
bounds = c.
Bounds
;
77
bounds = c.
Bounds
;
System\Windows\Forms\Design\TabOrder.cs (2)
320
screenRectangle = parent.RectangleToScreen(control.
Bounds
);
346
Rectangle convertedBounds = control.
Bounds
;
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
100
rect = _miniToolStrip.
Bounds
;
1121
_boundsToInvalidate = dropDownItem.DropDown.
Bounds
;
1998
_toolStripAdornerWindowService.Invalidate(ddi.DropDown.
Bounds
);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
136
bounds = _dropDown.
Bounds
;
697
Rectangle r = _designMenu.
Bounds
;
System\Windows\Forms\Design\ToolStripEditorManager.cs (3)
58
_behaviorService.Invalidate(_editor.
Bounds
);
88
_lastKnownEditorBounds = _editor.
Bounds
;
114
_lastKnownEditorBounds = _editor.
Bounds
;
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
436
bSvc?.Invalidate(glyphItem.Owner.
Bounds
);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1014
GetService<BehaviorService>().Invalidate(parentDropDown.
Bounds
);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (12)
1133
_rootControlGlyph = new ToolStripDropDownGlyph(rootControl.
Bounds
, new DropDownBehavior(designer, this));
1167
_toolStripAdornerWindowService?.Invalidate(ddi.DropDown.
Bounds
);
1184
invalidatingRegion.Exclude(dropDown.
Bounds
);
1201
_rootControlGlyph = new ToolStripDropDownGlyph(dropDown.
Bounds
, new DropDownBehavior(designer, this));
1208
_dropDownSizeToInvalidate = dropDown.
Bounds
;
1614
GetService<BehaviorService>()?.Invalidate(MenuItem.Owner.
Bounds
);
1652
Rectangle hostingDropDownBounds = (MenuItem.GetCurrentParent()).
Bounds
;
1654
Rectangle itemDropDownBounds = MenuItem.DropDown.
Bounds
;
1921
regionToInvalidate.Exclude(MenuItem.DropDown.
Bounds
);
1970
_boundsToInvalidateOnRemove = ownerItem.DropDown.
Bounds
;
1974
_boundsToInvalidateOnRemove = Rectangle.Union(_boundsToInvalidateOnRemove, dropDownItem.DropDown.
Bounds
);
2316
Rectangle bounds = ownerItem.DropDown.
Bounds
;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
35
Assert.Equal(new Rectangle(0, 0, control.Width, control.Height), control.
Bounds
);
System.Windows.Forms.Tests (475)
NumericUpDownTests.cs (2)
36
Assert.Equal(new Rectangle(0, 0, 120, 23), upDown.
Bounds
);
115
Assert.Equal(new Rectangle(0, 0, 120, 23), upDown.
Bounds
);
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
2625
var bounds = button.
Bounds
;
2656
var bounds = comboBox.
Bounds
;
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (2)
160
Rectangle expectedBounds = dataGridView.
Bounds
;
181
Rectangle expectedBounds = dataGridView.
Bounds
;
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
180
Rectangle expected = createControl ? form.
Bounds
: Rectangle.Empty;
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (1)
87
Rectangle controlBounds = panel.RectangleToScreen(control.
Bounds
);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (1)
133
Rectangle propertyGridBounds = propertyGrid.
Bounds
;
System\Windows\Forms\AxHostTests.cs (2)
42
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
Bounds
);
136
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
Bounds
);
System\Windows\Forms\ButtonBaseTests.cs (1)
34
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
Bounds
);
System\Windows\Forms\ButtonRenderingTests.cs (5)
39
Rectangle bounds = button.
Bounds
;
83
Rectangle bounds = button.
Bounds
;
124
Rectangle bounds = button.
Bounds
;
170
Rectangle bounds = button.
Bounds
;
233
Rectangle bounds = button.
Bounds
;
System\Windows\Forms\ButtonTests.cs (1)
36
Assert.Equal(new Rectangle(0, 0, 75, 23), control.
Bounds
);
System\Windows\Forms\CheckBoxRendererTests.cs (4)
29
Rectangle bounds = control.
Bounds
;
65
Rectangle bounds = control.
Bounds
;
102
Rectangle bounds = control.
Bounds
;
136
Rectangle bounds = control.
Bounds
;
System\Windows\Forms\CheckBoxTests.cs (1)
35
Assert.Equal(new Rectangle(0, 0, 104, 24), control.
Bounds
);
System\Windows\Forms\ComboBoxTests.cs (1)
39
Assert.Equal(new Rectangle(0, 0, 121, control.PreferredHeight), control.
Bounds
);
System\Windows\Forms\ContainerControlTests.cs (1)
41
Assert.Equal(Rectangle.Empty, control.
Bounds
);
System\Windows\Forms\ControlTests.cs (5)
29
Assert.Equal(Rectangle.Empty, control.
Bounds
);
118
Assert.Equal(Rectangle.Empty, control.
Bounds
);
214
Assert.Equal(new Rectangle(left, top, width, height), control.
Bounds
);
310
Assert.Equal(Rectangle.Empty, control.
Bounds
);
406
Assert.Equal(new Rectangle(left, top, width, height), control.
Bounds
);
System\Windows\Forms\ControlTests.Methods.cs (82)
7435
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
7454
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
7546
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
7565
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
7644
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
7663
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
7762
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
7782
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
7885
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
7907
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
8033
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
8060
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
8222
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8241
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8333
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8352
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8431
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8450
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8619
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8639
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8742
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8764
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8890
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
8917
Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.
Bounds
);
9036
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
9057
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
9178
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
9199
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
9307
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
9328
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
9444
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
9466
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
9599
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
9623
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
9757
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
9786
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
9828
Assert.Equal(new Rectangle(Point.Empty, value), control.
Bounds
);
9838
Assert.Equal(new Rectangle(Point.Empty, value), control.
Bounds
);
9868
Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.
Bounds
);
9884
Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.
Bounds
);
9916
Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.
Bounds
);
9935
Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.
Bounds
);
10391
Assert.Equal(Rectangle.Empty, control.
Bounds
);
10410
Assert.Equal(Rectangle.Empty, control.
Bounds
);
10458
Assert.Equal(0, control.
Bounds
.X);
10459
Assert.Equal(0, control.
Bounds
.Y);
10460
Assert.True(control.
Bounds
.Width > 0);
10461
Assert.True(control.
Bounds
.Height >= 0);
10491
Assert.Equal(0, control.
Bounds
.X);
10492
Assert.Equal(0, control.
Bounds
.Y);
10493
Assert.True(control.
Bounds
.Width > 0);
10494
Assert.True(control.
Bounds
.Height >= 0);
10565
Assert.Equal(Rectangle.Empty, control.
Bounds
);
10584
Assert.Equal(Rectangle.Empty, control.
Bounds
);
10657
Assert.Equal(Rectangle.Empty, control.
Bounds
);
10676
Assert.Equal(Rectangle.Empty, control.
Bounds
);
10748
Assert.Equal(Rectangle.Empty, control.
Bounds
);
10770
Assert.Equal(Rectangle.Empty, control.
Bounds
);
10815
Assert.Equal(new Rectangle(1, 2, 3, 4), control.
Bounds
);
10837
Assert.Equal(new Rectangle(1, 2, 3, 4), control.
Bounds
);
10893
Assert.Equal(new Rectangle(1, 2, 3, 4), control.
Bounds
);
10919
Assert.Equal(new Rectangle(1, 2, 3, 4), control.
Bounds
);
11005
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11024
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11116
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11135
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11214
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11233
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11323
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11343
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11446
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11468
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11575
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11602
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11700
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11719
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11809
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11829
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11944
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
11966
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
12073
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
12100
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
System\Windows\Forms\ControlTests.Properties.cs (78)
2488
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
2507
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
2577
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
2596
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
2662
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
2681
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
2767
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
2787
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
2867
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
2889
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
2992
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
3019
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
3341
Assert.Equal(new Rectangle(Point.Empty, value), control.
Bounds
);
3351
Assert.Equal(new Rectangle(Point.Empty, value), control.
Bounds
);
3391
Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.
Bounds
);
3407
Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.
Bounds
);
3454
Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.
Bounds
);
3473
Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.
Bounds
);
5738
Assert.Equal(new Rectangle(0, 0, 0, value), control.
Bounds
);
5757
Assert.Equal(new Rectangle(0, 0, 0, value), control.
Bounds
);
5848
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
5867
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
5936
Assert.Equal(new Rectangle(0, 0, 0, value), control.
Bounds
);
5955
Assert.Equal(new Rectangle(0, 0, 0, value), control.
Bounds
);
6044
Assert.Equal(new Rectangle(0, 0, 0, value), control.
Bounds
);
6064
Assert.Equal(new Rectangle(0, 0, 0, value), control.
Bounds
);
6156
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
Bounds
);
6178
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
Bounds
);
6293
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
Bounds
);
6320
Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.
Bounds
);
6702
Assert.Equal(new Rectangle(value, 0, 0, 0), control.
Bounds
);
6724
Assert.Equal(new Rectangle(value, 0, 0, 0), control.
Bounds
);
6793
Assert.Equal(new Rectangle(value, 0, 0, 0), control.
Bounds
);
6815
Assert.Equal(new Rectangle(value, 0, 0, 0), control.
Bounds
);
6892
Assert.Equal(new Rectangle(value, 0, 0, 0), control.
Bounds
);
6917
Assert.Equal(new Rectangle(value, 0, 0, 0), control.
Bounds
);
7002
Assert.Equal(new Rectangle(value, 0, 0, 0), control.
Bounds
);
7031
Assert.Equal(new Rectangle(value, 0, 0, 0), control.
Bounds
);
7183
Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.
Bounds
);
7205
Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.
Bounds
);
7273
Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.
Bounds
);
7296
Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.
Bounds
);
7375
Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.
Bounds
);
7400
Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.
Bounds
);
7486
Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.
Bounds
);
7516
Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.
Bounds
);
11122
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
Bounds
);
11141
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
Bounds
);
11233
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
11252
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
11328
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
Bounds
);
11347
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
Bounds
);
11443
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
Bounds
);
11463
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
Bounds
);
11560
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
11582
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
11702
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
11729
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
12137
Assert.Equal(new Rectangle(0, value, 0, 0), control.
Bounds
);
12158
Assert.Equal(new Rectangle(0, value, 0, 0), control.
Bounds
);
12227
Assert.Equal(new Rectangle(0, value, 0, 0), control.
Bounds
);
12249
Assert.Equal(new Rectangle(0, value, 0, 0), control.
Bounds
);
12325
Assert.Equal(new Rectangle(0, value, 0, 0), control.
Bounds
);
12349
Assert.Equal(new Rectangle(0, value, 0, 0), control.
Bounds
);
12434
Assert.Equal(new Rectangle(0, value, 0, 0), control.
Bounds
);
12463
Assert.Equal(new Rectangle(0, value, 0, 0), control.
Bounds
);
13157
Assert.Equal(new Rectangle(0, 0, value, 0), control.
Bounds
);
13176
Assert.Equal(new Rectangle(0, 0, value, 0), control.
Bounds
);
13267
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
13286
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
13355
Assert.Equal(new Rectangle(0, 0, value, 0), control.
Bounds
);
13374
Assert.Equal(new Rectangle(0, 0, value, 0), control.
Bounds
);
13463
Assert.Equal(new Rectangle(0, 0, value, 0), control.
Bounds
);
13483
Assert.Equal(new Rectangle(0, 0, value, 0), control.
Bounds
);
13575
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
Bounds
);
13597
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
Bounds
);
13712
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
Bounds
);
13739
Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.
Bounds
);
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
35
Assert.Equal(new Rectangle(0, 0, 240, 150), dataGrid.
Bounds
);
38
Rectangle bounds = dataGrid.
Bounds
;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
39
Assert.Equal(new Rectangle(0, 0, 100, control.PreferredHeight), control.
Bounds
);
System\Windows\Forms\DateTimePickerTests.cs (1)
36
Assert.Equal(new Rectangle(0, 0, 200, control.PreferredHeight), control.
Bounds
);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
48
Assert.Equal(new Rectangle(0, 0, control.Width, control.Height), control.
Bounds
);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
36
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
System\Windows\Forms\DomainUpDownTests.cs (1)
49
_sub.
Bounds
.Should().Be(new Rectangle(0, 0, 120, _sub.PreferredHeight));
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
35
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
System\Windows\Forms\FormTests.cs (1)
46
Assert.Equal(new Rectangle(0, 0, 300, 300), control.
Bounds
);
System\Windows\Forms\GroupBoxTests.cs (1)
32
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
System\Windows\Forms\HScrollBarTests.cs (4)
28
Assert.Equal(0, control.
Bounds
.X);
29
Assert.Equal(0, control.
Bounds
.Y);
30
Assert.True(control.
Bounds
.Width > 0);
31
Assert.True(control.
Bounds
.Height > 0);
System\Windows\Forms\LabelTests.cs (1)
32
Assert.Equal(new Rectangle(0, 0, 100, 23), control.
Bounds
);
System\Windows\Forms\Layout\FlowLayoutTests.cs (28)
84
Assert.Equal(new Rectangle(0, 0, 10, 20), child1.
Bounds
);
85
Assert.Equal(new Rectangle(11, 2, 10, 20), child2.
Bounds
);
86
Assert.Equal(new Rectangle(24, 0, 100, 200), largeChild.
Bounds
);
87
Assert.Equal(new Rectangle(127, 3, 0, 0), emptyChild.
Bounds
);
88
Assert.Equal(new Rectangle(131, 2, 0, 0), emptyChildWithMargin.
Bounds
);
89
Assert.Equal(new Rectangle(134, 0, 50, 100), child3.
Bounds
);
90
Assert.Equal(new Rectangle(184, 0, 10, 20), child4.
Bounds
);
145
Assert.Equal(new Rectangle(190, 0, 10, 20), child1.
Bounds
);
146
Assert.Equal(new Rectangle(177, 2, 10, 20), child2.
Bounds
);
147
Assert.Equal(new Rectangle(76, 0, 100, 200), largeChild.
Bounds
);
148
Assert.Equal(new Rectangle(73, 3, 0, 0), emptyChild.
Bounds
);
149
Assert.Equal(new Rectangle(67, 2, 0, 0), emptyChildWithMargin.
Bounds
);
150
Assert.Equal(new Rectangle(16, 0, 50, 100), child3.
Bounds
);
151
Assert.Equal(new Rectangle(6, 0, 10, 20), child4.
Bounds
);
206
Assert.Equal(new Rectangle(0, 0, 10, 20), child1.
Bounds
);
207
Assert.Equal(new Rectangle(1, 22, 10, 20), child2.
Bounds
);
208
Assert.Equal(new Rectangle(14, 0, 100, 200), largeChild.
Bounds
);
209
Assert.Equal(new Rectangle(117, 3, 0, 0), emptyChild.
Bounds
);
210
Assert.Equal(new Rectangle(115, 8, 0, 0), emptyChildWithMargin.
Bounds
);
211
Assert.Equal(new Rectangle(120, 0, 50, 100), child3.
Bounds
);
212
Assert.Equal(new Rectangle(170, 0, 10, 20), child4.
Bounds
);
267
Assert.Equal(new Rectangle(0, 80, 10, 20), child1.
Bounds
);
268
Assert.Equal(new Rectangle(1, 56, 10, 20), child2.
Bounds
);
269
Assert.Equal(new Rectangle(14, -100, 100, 200), largeChild.
Bounds
);
270
Assert.Equal(new Rectangle(117, 97, 0, 0), emptyChild.
Bounds
);
271
Assert.Equal(new Rectangle(115, 90, 0, 0), emptyChildWithMargin.
Bounds
);
272
Assert.Equal(new Rectangle(120, 0, 50, 100), child3.
Bounds
);
273
Assert.Equal(new Rectangle(170, 80, 10, 20), child4.
Bounds
);
System\Windows\Forms\ListBoxTests.cs (1)
33
Assert.Equal(new Rectangle(0, 0, 120, 96), control.
Bounds
);
System\Windows\Forms\ListControlTests.cs (1)
33
Assert.Equal(Rectangle.Empty, control.
Bounds
);
System\Windows\Forms\ListViewTests.cs (1)
40
Assert.Equal(new Rectangle(0, 0, 121, 97), control.
Bounds
);
System\Windows\Forms\MdiClientTests.cs (11)
31
Assert.Equal(Rectangle.Empty, control.
Bounds
);
547
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
Bounds
);
566
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
Bounds
);
649
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
671
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
783
Assert.Equal(Rectangle.Empty, control.
Bounds
);
810
Assert.Equal(Rectangle.Empty, control.
Bounds
);
935
Assert.Equal(Rectangle.Empty, control.
Bounds
);
962
Assert.Equal(Rectangle.Empty, control.
Bounds
);
1097
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
1124
Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.
Bounds
);
System\Windows\Forms\MenuStripTests.cs (1)
35
Assert.Equal(new Rectangle(0, 0, 200, 24), control.
Bounds
);
System\Windows\Forms\MonthCalendarTests.cs (8)
37
Assert.Equal(0, control.
Bounds
.X);
38
Assert.Equal(0, control.
Bounds
.Y);
39
Assert.True(control.
Bounds
.Width > 0);
40
Assert.True(control.
Bounds
.Height > 0);
2530
Assert.Equal(new Rectangle(Point.Empty, size), control.
Bounds
);
2539
Assert.Equal(new Rectangle(Point.Empty, size), control.
Bounds
);
2563
Assert.Equal(new Rectangle(Point.Empty, size), control.
Bounds
);
2575
Assert.Equal(new Rectangle(Point.Empty, size), control.
Bounds
);
System\Windows\Forms\PanelTests.cs (1)
36
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
System\Windows\Forms\PictureBoxTests.cs (1)
35
Assert.Equal(new Rectangle(0, 0, 100, 50), control.
Bounds
);
System\Windows\Forms\ProgressBarTests.cs (1)
31
Assert.Equal(new Rectangle(0, 0, 100, 23), control.
Bounds
);
System\Windows\Forms\PropertyGridTests.cs (1)
46
Assert.Equal(new Rectangle(0, 0, 130, 130), control.
Bounds
);
System\Windows\Forms\RadioButtonRendererTests.cs (4)
28
Rectangle bounds = control.
Bounds
;
59
Rectangle bounds = control.
Bounds
;
96
Rectangle bounds = control.
Bounds
;
115
Rectangle bounds = control.
Bounds
;
System\Windows\Forms\RadioButtonTests.cs (1)
35
Assert.Equal(new Rectangle(0, 0, 104, 24), control.
Bounds
);
System\Windows\Forms\RichTextBoxTests.cs (1)
43
Assert.Equal(new Rectangle(0, 0, 100, 96), control.
Bounds
);
System\Windows\Forms\ScrollableControlTests.cs (5)
35
Assert.Equal(Rectangle.Empty, control.
Bounds
);
2341
Assert.Equal(child.ExpectedSize, child.
Bounds
);
2347
Assert.Equal(child.ExpectedSize, child.
Bounds
);
2413
Assert.Equal(child.ExpectedSize, child.
Bounds
);
2419
Assert.Equal(new Rectangle(expectedDisplayRectangleLocation, child.ExpectedSize.Size), child.
Bounds
);
System\Windows\Forms\ScrollBarTests.cs (1)
30
Assert.Equal(Rectangle.Empty, control.
Bounds
);
System\Windows\Forms\SplitterPanelTests.cs (9)
42
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
473
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
492
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
551
Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.
Bounds
);
573
Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.
Bounds
);
838
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
Bounds
);
857
Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.
Bounds
);
1195
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
1214
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
System\Windows\Forms\SplitterTests.cs (3)
31
Assert.Equal(new Rectangle(0, 0, 3, 3), control.
Bounds
);
1421
Assert.Equal(control.Left + control.
Bounds
.Width / 2, e.SplitX);
1422
Assert.Equal(control.Top + control.
Bounds
.Height / 2, e.SplitY);
System\Windows\Forms\StatusStripTests.cs (2)
35
Assert.Equal(new Rectangle(0, 0, 200, 22), control.
Bounds
);
1186
Assert.Equal(control.SizeGripBounds, grip.
Bounds
);
System\Windows\Forms\StatusStripTests.Rendering.cs (1)
35
Rectangle bounds = statusStrip.
Bounds
;
System\Windows\Forms\TabControl.ControlCollectionTests.cs (44)
72
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
90
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
94
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
119
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
122
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
202
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
229
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
233
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
270
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
274
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
369
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
390
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
394
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
425
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
428
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
517
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
547
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
551
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
594
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
598
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
925
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
929
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
945
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
949
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
965
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
969
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
1037
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
1041
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
1060
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
1064
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
1086
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
1090
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
1155
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
1159
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
1178
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
1182
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
1201
Assert.Equal(new Rectangle(4, 24, 392, 272), value1.
Bounds
);
1205
Assert.Equal(new Rectangle(4, 24, 392, 272), value2.
Bounds
);
1274
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
1278
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
1297
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
1301
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
1323
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
1327
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (80)
58
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
77
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
81
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
107
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
110
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
191
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
219
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
223
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
261
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
265
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
361
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
383
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
387
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
419
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
422
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
512
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
543
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
547
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
591
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
595
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
1005
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
1023
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
1027
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
1052
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
1055
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
2000
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
2019
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
2023
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
2051
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
2054
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
2128
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
2156
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
2160
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
2200
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
2204
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
2304
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
2326
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
2330
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
2364
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
2367
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
2461
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
2492
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
2496
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
2542
Assert.Equal(owner.DisplayRectangle, value1.
Bounds
);
2546
Assert.Equal(owner.DisplayRectangle, value2.
Bounds
);
3046
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
3065
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
3069
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
3097
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
3100
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4012
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4016
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4033
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4037
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4054
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4058
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4127
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4131
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4151
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4155
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4178
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4182
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4250
Assert.Equal(new Rectangle(4, 24, 392, 272), value1.
Bounds
);
4254
Assert.Equal(new Rectangle(4, 24, 392, 272), value2.
Bounds
);
4274
Assert.Equal(new Rectangle(4, 24, 392, 272), value1.
Bounds
);
4278
Assert.Equal(new Rectangle(4, 24, 392, 272), value2.
Bounds
);
4298
Assert.Equal(new Rectangle(4, 24, 392, 272), value1.
Bounds
);
4302
Assert.Equal(new Rectangle(4, 24, 392, 272), value2.
Bounds
);
4374
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4378
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4398
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4402
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4425
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4429
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4731
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4735
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4751
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4755
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
4771
Assert.Equal(new Rectangle(0, 0, 200, 100), value1.
Bounds
);
4775
Assert.Equal(new Rectangle(0, 0, 200, 100), value2.
Bounds
);
System\Windows\Forms\TabControlTests.cs (1)
33
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
37
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
System\Windows\Forms\TabPageTests.cs (18)
40
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
149
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
1909
Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.
Bounds
);
1931
Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.
Bounds
);
1999
Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.
Bounds
);
2022
Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.
Bounds
);
2100
Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.
Bounds
);
2125
Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.
Bounds
);
2224
Assert.Equal(expected, control.
Bounds
);
2254
Assert.Equal(expected, control.
Bounds
);
4355
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
4376
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
4492
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
4514
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
4647
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
4671
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
4826
Assert.Equal(expected, control.
Bounds
);
4856
Assert.Equal(expected, control.
Bounds
);
System\Windows\Forms\TextBoxRendererTests.cs (3)
36
Rectangle bounds = textbox.
Bounds
;
65
Rectangle bounds = textbox.
Bounds
;
100
Rectangle bounds = textbox.
Bounds
;
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
38
Assert.Equal(new Rectangle(0, 0, 200, 100), control.
Bounds
);
950
Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.
Bounds
);
972
Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.
Bounds
);
System\Windows\Forms\ToolStripControlHostTests.cs (7)
63
Assert.Equal(c.
Bounds
, item.Bounds);
708
Assert.Equal(new Rectangle(10, 20, 30, 40), c.
Bounds
);
715
Assert.Equal(new Rectangle(10, 20, 30, 40), c.
Bounds
);
2214
Assert.Equal(new Rectangle(1, 2, value.Width, value.Height), c.
Bounds
);
2220
Assert.Equal(new Rectangle(1, 2, value.Width, value.Height), c.
Bounds
);
2779
Assert.Equal(new Rectangle(10, 20, 30, 40), c.
Bounds
);
2785
Assert.Equal(new Rectangle(10, 20, 30, 40), c.
Bounds
);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
39
Assert.Equal(new Rectangle(0, 0, 100, 25), control.
Bounds
);
1976
Assert.Equal(new Rectangle(expected.X, expected.Y, 100, 25), control.
Bounds
);
1998
Assert.Equal(new Rectangle(expected.X, expected.Y, 100, 25), control.
Bounds
);
System\Windows\Forms\ToolStripPanelTests.cs (1)
37
Assert.Equal(Rectangle.Empty, control.
Bounds
);
System\Windows\Forms\ToolStripTests.cs (2)
39
Assert.Equal(new Rectangle(0, 0, 100, 25), control.
Bounds
);
197
Assert.Equal(new Rectangle(0, 0, 100, 25), control.
Bounds
);
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
29
Rectangle bounds = toolStrip.
Bounds
;
System\Windows\Forms\TreeViewTests.cs (1)
31
Assert.Equal(new Rectangle(0, 0, 121, 97), control.
Bounds
);
System\Windows\Forms\UpDownBaseTests.cs (3)
36
Assert.Equal(new Rectangle(0, 0, 120, control.PreferredHeight), control.
Bounds
);
2773
Assert.Equal(new Rectangle(x, y, width, preferredHeight), control.
Bounds
);
2805
Assert.Equal(new Rectangle(x, y, width, preferredHeight), control.
Bounds
);
System\Windows\Forms\UserControlTests.cs (1)
41
Assert.Equal(new Rectangle(0, 0, 150, 150), control.
Bounds
);
System\Windows\Forms\VScrollBarTests.cs (4)
27
Assert.Equal(0, control.
Bounds
.X);
28
Assert.Equal(0, control.
Bounds
.Y);
29
Assert.True(control.
Bounds
.Width > 0);
30
Assert.True(control.
Bounds
.Height > 0);
System\Windows\Forms\WebBrowserTests.cs (1)
31
Assert.Equal(new Rectangle(0, 0, 250, 250), control.
Bounds
);
TextBoxBaseTests.cs (6)
6546
Assert.Equal(new Rectangle(x, y, width, s_preferredHeight), control.
Bounds
);
6567
Assert.Equal(new Rectangle(x, y, width, s_preferredHeight), control.
Bounds
);
6680
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
6701
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
6796
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
6817
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
TextBoxTests.cs (1)
38
Assert.Equal(new Rectangle(0, 0, 100, control.PreferredHeight), control.
Bounds
);
TrackBarTests.cs (3)
32
Assert.Equal(new Rectangle(0, 0, 104, s_dimension), control.
Bounds
);
3006
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
3027
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
WebBrowserBaseTests.cs (4)
85
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
104
Assert.Equal(new Rectangle(x, y, width, height), control.
Bounds
);
201
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
223
Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.
Bounds
);
System.Windows.Forms.UI.IntegrationTests (10)
AnchorLayoutTests.cs (7)
222
var bounds = button.
Bounds
;
224
Assert.Equal(bounds, button.
Bounds
); // Bounds Specified is None.
227
Assert.NotEqual(bounds, button.
Bounds
); // Bounds Specified is None.
229
bounds = button.
Bounds
;
231
Assert.NotEqual(bounds, button.
Bounds
);
242
Rectangle newButtonBounds = button.
Bounds
;
266
newButtonBounds = button.
Bounds
;
Dpi\FormDpiTests.cs (3)
34
Drawing.Rectangle initialBounds = form.
Bounds
;
41
Assert.NotEqual(initialBounds.Width, form.
Bounds
.Width);
42
Assert.NotEqual(initialBounds.Height, form.
Bounds
.Height);