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)
1416Bounds = b; 3257Bounds = new Rectangle(location.X, location.Y, ocxExtent.Width, ocxExtent.Height); 3264Bounds = new Rectangle(location.X, location.Y, newSize.Width, newSize.Height);
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1788_control.Bounds = posRect;
System\Windows\Forms\ContextMenuStrip.cs (1)
57contextMenuStrip.Bounds = Bounds;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
10323_horizScrollBar.Bounds = new Rectangle( 10364_vertScrollBar.Bounds = new Rectangle(
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1976ScrollBar.Bounds = boundsScroll;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
468Bounds = newBounds;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
418spd._target.Bounds = bounds;
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
48tabPage.Bounds = _owner.DisplayRectangle;
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1617pages[i].Bounds = rect; 1822tabPages[index].Bounds = DisplayRectangle;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
271RTLGrip.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)
26Bounds = 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)
791Bounds = new Rectangle(location.X, location.Y, extent.Width, extent.Height);
System\Windows\Forms\Design\ComponentEditorForm.cs (8)
237_pageHost.Bounds = pageHostBounds; 238grayStrip.Bounds = new Rectangle(pageHostBounds.X, BUTTON_PAD, 247page.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)
3072Bounds = bounds; 3085Bounds = 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)
2005Bounds = rc;
System\Windows\Forms\Design\DesignerFrame.cs (2)
396c.Bounds = client; 426control.Bounds = DisplayRectangle;
System\Windows\Forms\Design\SelectionUIHandler.cs (2)
110controls[i].Bounds = b; 405controls[i].Bounds = newBounds;
System.Windows.Forms.Tests (92)
System\Windows\Forms\AccessibleObjects\Panel.PanelAccessibleObjectTests.cs (1)
144Bounds = expected
System\Windows\Forms\ComboBoxTests.cs (4)
1828Bounds = new Rectangle(1, 2, 30, 40) 1910Bounds = new Rectangle(1, 2, 30, 40) 2012Bounds = new Rectangle(1, 2, 30, 40) 2116Bounds = new Rectangle(1, 2, 30, 40)
System\Windows\Forms\ControlTests.Handlers.cs (7)
3891Bounds = new Rectangle(1, 2, 30, 40) 3895Bounds = new Rectangle(1, 2, 30, 40) 3932Bounds = new Rectangle(1, 2, 30, 40) 3936Bounds = new Rectangle(1, 2, 30, 40) 3982Bounds = new Rectangle(1, 2, 10, 20), 4109Bounds = new Rectangle(1, 2, 30, 40) 4113Bounds = new Rectangle(1, 2, 10, 20),
System\Windows\Forms\ControlTests.Methods.cs (7)
2375Bounds = new Rectangle(1, 2, 30, 40) 10501Bounds = new Rectangle(1, 2, 3, 4) 10588Bounds = new Rectangle(10, 20, 30, 40) 10592Bounds = new Rectangle(1, 2, 3, 4), 10777Bounds = new Rectangle(1, 2, 3, 4) 10844Bounds = new Rectangle(10, 20, 30, 40) 10848Bounds = new Rectangle(1, 2, 3, 4),
System\Windows\Forms\ControlTests.Properties.cs (12)
2477control.Bounds = new Rectangle(x, y, width, height); 2496control.Bounds = new Rectangle(x, y, width, height); 2566control.Bounds = new Rectangle(x, y, width, height); 2585control.Bounds = new Rectangle(x, y, width, height); 2651control.Bounds = new Rectangle(x, y, width, height); 2670control.Bounds = new Rectangle(x, y, width, height); 2756control.Bounds = new Rectangle(x, y, width, height); 2776control.Bounds = new Rectangle(x, y, width, height); 2856control.Bounds = new Rectangle(x, y, width, height); 2878control.Bounds = new Rectangle(x, y, width, height); 2981control.Bounds = new Rectangle(x, y, width, height); 3008control.Bounds = new Rectangle(x, y, width, height);
System\Windows\Forms\ScrollableControlTests.cs (7)
1570Bounds = new Rectangle(1, 2, 30, 40) 1574Bounds = new Rectangle(1, 2, 30, 40) 1665Bounds = new Rectangle(1, 2, 30, 40) 1669Bounds = new Rectangle(1, 2, 30, 40) 1683Bounds = new Rectangle(1, 2, 10, 20), 1823Bounds = new Rectangle(1, 2, 30, 40) 1827Bounds = new Rectangle(1, 2, 10, 20),
System\Windows\Forms\SplitterTests.cs (9)
1204Bounds = new Rectangle(10, 10, 50, 50) 1248Bounds = new Rectangle(0, 0, 0, 100) 1254Bounds = new Rectangle(50, 0, 3, 3) 1367Bounds = new Rectangle(0, 0, 0, 100) 1373Bounds = new Rectangle(50, 0, 3, 3) 2015Bounds = new Rectangle(0, 0, 0, 100) 2021Bounds = new Rectangle(50, 0, 3, 3) 2116Bounds = new Rectangle(0, 0, 0, 100) 2122Bounds = new Rectangle(50, 0, 3, 3)
System\Windows\Forms\TabControl.ControlCollectionTests.cs (8)
43Bounds = new Rectangle(0, 0, 400, 300) 166Bounds = new Rectangle(0, 0, 400, 300) 326Bounds = new Rectangle(0, 0, 400, 300) 467Bounds = new Rectangle(0, 0, 400, 300) 892Bounds = new Rectangle(0, 0, 400, 300) 990Bounds = new Rectangle(0, 0, 400, 300) 1117Bounds = new Rectangle(0, 0, 400, 300) 1229Bounds = new Rectangle(0, 0, 400, 300)
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (15)
28Bounds = new Rectangle(0, 0, 400, 300) 154Bounds = new Rectangle(0, 0, 400, 300) 317Bounds = new Rectangle(0, 0, 400, 300) 461Bounds = new Rectangle(0, 0, 400, 300) 975Bounds = new Rectangle(0, 0, 400, 300) 1970Bounds = new Rectangle(0, 0, 400, 300) 2091Bounds = new Rectangle(0, 0, 400, 300) 2260Bounds = new Rectangle(0, 0, 400, 300) 2410Bounds = new Rectangle(0, 0, 400, 300) 3015Bounds = new Rectangle(0, 0, 400, 300) 3978Bounds = new Rectangle(0, 0, 400, 300) 4079Bounds = new Rectangle(0, 0, 400, 300) 4209Bounds = new Rectangle(0, 0, 400, 300) 4326Bounds = new Rectangle(0, 0, 400, 300) 4699Bounds = new Rectangle(0, 0, 400, 300)
System\Windows\Forms\TabPageTests.cs (4)
4052Bounds = new Rectangle(1, 2, 30, 40), 4057Bounds = new Rectangle(1, 2, 10, 20), 4191Bounds = new Rectangle(1, 2, 30, 40), 4196Bounds = new Rectangle(1, 2, 10, 20),
System\Windows\Forms\ToolStripControlHostTests.cs (6)
30Bounds = new Rectangle(1, 2, 3, 4), 700Bounds = new Rectangle(10, 20, 30, 40) 2206Bounds = new Rectangle(1, 2, 3, 4) 2770Bounds = new Rectangle(10, 20, 30, 40) 2858Bounds = new Rectangle(1, 2, 3, 4) 3847Bounds = new Rectangle(1, 2, 3, 4)
System\Windows\Forms\ToolStripTests.cs (7)
5912Bounds = new Rectangle(1, 2, 30, 40) 5916Bounds = new Rectangle(1, 2, 30, 40) 5960Bounds = new Rectangle(1, 2, 30, 40) 5964Bounds = new Rectangle(1, 2, 30, 40) 6024Bounds = new Rectangle(0, 0, 30, 25), 6162Bounds = new Rectangle(1, 2, 30, 40) 6166Bounds = new Rectangle(0, 0, 30, 25),
System\Windows\Forms\UpDownBaseTests.cs (1)
1609Bounds = new Rectangle(1, 2, 30, 40)
WebBrowserBaseTests.cs (4)
74control.Bounds = new Rectangle(x, y, width, height); 93control.Bounds = new Rectangle(x, y, width, height); 190control.Bounds = new Rectangle(x, y, width, height); 212control.Bounds = new Rectangle(x, y, width, height);
WinFormsControlsTest (2)
ListViewTest.cs (1)
57Bounds = new Rectangle(new Point(0, 0), new Size(400, 200)),
MultipleControls.cs (1)
22Bounds = 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)
1198Rectangle oldBounds = Bounds; 1410Rectangle b = Bounds; 2149RECT posRect = Bounds;
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
391*lprcPosRect = _host.Bounds;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1709Rectangle bounds = _control.Bounds;
System\Windows\Forms\ContextMenuStrip.cs (1)
57contextMenuStrip.Bounds = Bounds;
System\Windows\Forms\Control.cs (4)
4481originalBounds = Bounds; 4528if (Bounds != originalBounds) 8730child.PrintToMetaFileRecursive(hDC, lParam, child.Bounds); 9672Rectangle rawScaledBounds = GetScaledBounds(Bounds, factor, specified);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3736using RegionScope windowRegion = new(Bounds);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
2177return EditingControl.Bounds.Contains(ptMouse); 2191return _editingPanel.Bounds.Contains(ptMouse); 2205if (_vertScrollBar.Bounds.Contains(ptMouse)) 2213return _horizScrollBar.Bounds.Contains(ptMouse);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
9295if (_horizScrollBar is not null && _horizScrollBar.Visible && _horizScrollBar.Bounds.Contains(x, y)) 9301if (_vertScrollBar is not null && _vertScrollBar.Visible && _vertScrollBar.Bounds.Contains(x, y)) 10438&& _editingPanel.Bounds.IntersectsWith(lastSplitBarRect)) 10506&& _editingPanel.Bounds.IntersectsWith(lastSplitBarRect))
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1653Rectangle oldBounds = Bounds;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
880Rectangle rectCur = control.Bounds; 1972Rectangle boundsScroll = ScrollBar.Bounds;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (3)
398_dragBaseRect = Bounds; 430Rectangle newBounds = Bounds; 463if (newBounds != Bounds)
System\Windows\Forms\Controls\Splitter\Splitter.cs (6)
399Rectangle bounds = spd._target.Bounds; 558Rectangle r = Bounds; 559Rectangle bounds = splitTarget.Bounds; 610Rectangle r = target.Bounds; 633_initTargetSize = target.Bounds.Width; 637_initTargetSize = target.Bounds.Height;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
364RECT rect = Bounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (4)
39SetBounds(c.Bounds); 362specifiedBounds = _control.Bounds; 372Rectangle bounds = _control.Bounds; 658if (bounds != _control.Bounds)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (3)
552return Screen.GetWorkingArea(Bounds).Size - Padding.Size; 1204Rectangle bounds = Bounds; 1712Rectangle bounds = Bounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
806int height = GetDropDownBounds(Bounds).Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (4)
1096Rectangle intersection = c1.Bounds; 1097intersection.Intersect(c2.Bounds); 1113{c1.Name ?? ""}: {c1.Bounds} row {GetRow(draggedToolStrip1, RowsInternal)} row bounds {draggedToolStrip1.ToolStripPanelRow?.Bounds} 1114{c2.Name ?? ""}: {c2.Bounds} row {GetRow(draggedToolStrip2, RowsInternal)} row bounds {draggedToolStrip2.ToolStripPanelRow?.Bounds}");
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelControlCollection.XYComparer.cs (6)
26if (one.Bounds.X < two.Bounds.X) 31if (one.Bounds.X == two.Bounds.X) 33return one.Bounds.Y < two.Bounds.Y ? -1 : 1;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.ToolStripPanelControlCollection.YXComparer.cs (6)
27if (one.Bounds.Y < two.Bounds.Y) 32if (one.Bounds.Y == two.Bounds.Y) 34return one.Bounds.X < two.Bounds.X ? -1 : 1;
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
393Rectangle r = Bounds;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2965else if (tn is not null && tn.Bounds.Right > Bounds.Right)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
518Rectangle editBounds = _upDownEdit.Bounds;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (1)
37Rectangle bounds = owner.Bounds;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
671RECT posRect = Bounds;
System\Windows\Forms\Controls\WebBrowser\WebBrowserSiteBase.cs (3)
196RECT posRect = Host.Bounds; 233RECT posRect = Host.Bounds; 264*lprcPosRect = Host.Bounds;
System\Windows\Forms\Form.AccessibleObject.cs (2)
28: owner.Parent?.RectangleToScreen(owner.Bounds) ?? owner.Bounds;
System\Windows\Forms\Form.cs (4)
900Rectangle bounds = Bounds; 1316Rectangle bounds = Bounds; 1680return Bounds; 3047Rectangle bounds = Bounds;
System\Windows\Forms\Layout\CommonProperties.cs (1)
270/// <see cref="Control.Width"/>, <see cref="Control.Height"/>, <see cref="Control.Bounds"/>, property. (Its the
System\Windows\Forms\MDI\MDIClient.cs (4)
194Rectangle bounds = Bounds; 230Rectangle oldBounds = Bounds; 232Rectangle newBounds = Bounds; 289Rectangle bounds = Bounds;
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
460Rectangle bounds = current.Bounds; 860Rectangle bounds = activeControl.Bounds;
System.Windows.Forms.Design (62)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (2)
179if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)) && !_dropDownRectangle.Contains(mevent.Location)) 282if (Parent is not null && Bounds.Contains(Parent.PointToClient(Cursor.Position)))
System\ComponentModel\Design\DesignerActionPanel.cs (1)
474Rectangle rect = Bounds;
System\ComponentModel\Design\DesignerActionUI.cs (1)
198Rectangle trayBounds = trayControl.Bounds;
System\Drawing\Design\ColorEditor.ColorPalette.cs (1)
322if (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)
200Rectangle 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; 636Rectangle bounds = control.Bounds; 806if (control.Bounds == oldBounds) 818if (control.Bounds != bounds)
System\Windows\Forms\Design\CommandSet.cs (2)
3309Rectangle childBounds = child.Bounds; 3332Rectangle pasteControlBounds = pasteControl.Bounds;
System\Windows\Forms\Design\ComponentTray.cs (7)
199Rectangle bounds = control.Bounds; 1381Rectangle bounds = child.Bounds; 1457Rectangle innerRect = c.Bounds; 1859Rectangle bounds = prevCtl.Bounds; 1992Rectangle rc = Bounds; 2420Rectangle bounds = Bounds; 2763desGlyph.UpdateAlternativeBounds(trayControl.Bounds);
System\Windows\Forms\Design\ControlCommandSet.cs (1)
720Rectangle newRect = parentDesigner.GetSnappedRect(primaryControl.Bounds, dragRect, true);
System\Windows\Forms\Design\DesignerFrame.cs (1)
483Rectangle overlayControlScreenBounds = overlayControl.Bounds;
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (2)
149var bounds = control.Bounds; 201var bounds = currentControl.Bounds;
System\Windows\Forms\Design\OleDragDropHandler.CfCodeToolboxItem.cs (4)
104bounds = bounds.IsEmpty ? childControl.Bounds : Rectangle.Union(bounds, childControl.Bounds); 113defaultValues["Offset"] = new Size(childControl.Bounds.X - bounds.X, childControl.Bounds.Y - bounds.Y);
System\Windows\Forms\Design\OleDragDropHandler.cs (4)
368newRect = comp.Bounds; 380newRect = _selectionHandler.GetUpdatedRect(comp.Bounds, newRect, false); 390newRect = comp.Bounds; 401newRect = _selectionHandler.GetUpdatedRect(comp.Bounds, newRect, false);
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
874Rectangle bounds = child.Bounds;
System\Windows\Forms\Design\SelectionUIHandler.cs (1)
303Rectangle oldBounds = controls[i].Bounds;
System\Windows\Forms\Design\StatusCommandUI.cs (2)
48bounds = c.Bounds; 77bounds = c.Bounds;
System\Windows\Forms\Design\TabOrder.cs (2)
320screenRectangle = parent.RectangleToScreen(control.Bounds); 346Rectangle convertedBounds = control.Bounds;
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
100rect = _miniToolStrip.Bounds; 1122_boundsToInvalidate = dropDownItem.DropDown.Bounds; 1999_toolStripAdornerWindowService.Invalidate(ddi.DropDown.Bounds);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
136bounds = _dropDown.Bounds; 697Rectangle 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)
436bSvc?.Invalidate(glyphItem.Owner.Bounds);
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1014GetService<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); 1184invalidatingRegion.Exclude(dropDown.Bounds); 1201_rootControlGlyph = new ToolStripDropDownGlyph(dropDown.Bounds, new DropDownBehavior(designer, this)); 1208_dropDownSizeToInvalidate = dropDown.Bounds; 1614GetService<BehaviorService>()?.Invalidate(MenuItem.Owner.Bounds); 1652Rectangle hostingDropDownBounds = (MenuItem.GetCurrentParent()).Bounds; 1654Rectangle itemDropDownBounds = MenuItem.DropDown.Bounds; 1921regionToInvalidate.Exclude(MenuItem.DropDown.Bounds); 1970_boundsToInvalidateOnRemove = ownerItem.DropDown.Bounds; 1974_boundsToInvalidateOnRemove = Rectangle.Union(_boundsToInvalidateOnRemove, dropDownItem.DropDown.Bounds); 2316Rectangle bounds = ownerItem.DropDown.Bounds;
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
35Assert.Equal(new Rectangle(0, 0, control.Width, control.Height), control.Bounds);
System.Windows.Forms.Tests (475)
NumericUpDownTests.cs (2)
36Assert.Equal(new Rectangle(0, 0, 120, 23), upDown.Bounds); 115Assert.Equal(new Rectangle(0, 0, 120, 23), upDown.Bounds);
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
2625var bounds = button.Bounds; 2656var bounds = comboBox.Bounds;
System\Windows\Forms\AccessibleObjects\DataGridViewAccessibleObjectTests.cs (2)
160Rectangle expectedBounds = dataGridView.Bounds; 181Rectangle expectedBounds = dataGridView.Bounds;
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
180Rectangle expected = createControl ? form.Bounds : Rectangle.Empty;
System\Windows\Forms\AccessibleObjects\PrintPreviewControl.PrintPreviewControlAccessibleObjectTests.cs (1)
87Rectangle controlBounds = panel.RectangleToScreen(control.Bounds);
System\Windows\Forms\AccessibleObjects\PropertyGridView.PropertyGridViewAccessibleObjectTests.cs (1)
133Rectangle propertyGridBounds = propertyGrid.Bounds;
System\Windows\Forms\AxHostTests.cs (2)
42Assert.Equal(new Rectangle(0, 0, 75, 23), control.Bounds); 136Assert.Equal(new Rectangle(0, 0, 75, 23), control.Bounds);
System\Windows\Forms\ButtonBaseTests.cs (1)
34Assert.Equal(new Rectangle(0, 0, 75, 23), control.Bounds);
System\Windows\Forms\ButtonRenderingTests.cs (5)
39Rectangle bounds = button.Bounds; 83Rectangle bounds = button.Bounds; 124Rectangle bounds = button.Bounds; 170Rectangle bounds = button.Bounds; 233Rectangle bounds = button.Bounds;
System\Windows\Forms\ButtonTests.cs (1)
36Assert.Equal(new Rectangle(0, 0, 75, 23), control.Bounds);
System\Windows\Forms\CheckBoxRendererTests.cs (4)
29Rectangle bounds = control.Bounds; 65Rectangle bounds = control.Bounds; 102Rectangle bounds = control.Bounds; 136Rectangle bounds = control.Bounds;
System\Windows\Forms\CheckBoxTests.cs (1)
35Assert.Equal(new Rectangle(0, 0, 104, 24), control.Bounds);
System\Windows\Forms\ComboBoxTests.cs (1)
39Assert.Equal(new Rectangle(0, 0, 121, control.PreferredHeight), control.Bounds);
System\Windows\Forms\ContainerControlTests.cs (1)
41Assert.Equal(Rectangle.Empty, control.Bounds);
System\Windows\Forms\ControlTests.cs (5)
29Assert.Equal(Rectangle.Empty, control.Bounds); 118Assert.Equal(Rectangle.Empty, control.Bounds); 214Assert.Equal(new Rectangle(left, top, width, height), control.Bounds); 310Assert.Equal(Rectangle.Empty, control.Bounds); 406Assert.Equal(new Rectangle(left, top, width, height), control.Bounds);
System\Windows\Forms\ControlTests.Methods.cs (82)
7426Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 7445Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 7537Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 7556Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 7635Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 7654Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 7753Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 7773Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 7876Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 7898Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 8024Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 8051Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 8213Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8232Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8324Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8343Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8422Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8441Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8610Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8630Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8733Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8755Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8881Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 8908Assert.Equal(new Rectangle(expectedX, expectedY, expectedWidth, expectedHeight), control.Bounds); 9027Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 9048Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 9169Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 9190Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 9298Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 9319Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 9435Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 9457Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 9590Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 9614Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 9748Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 9777Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 9819Assert.Equal(new Rectangle(Point.Empty, value), control.Bounds); 9829Assert.Equal(new Rectangle(Point.Empty, value), control.Bounds); 9859Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 9875Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 9907Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 9926Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 10382Assert.Equal(Rectangle.Empty, control.Bounds); 10401Assert.Equal(Rectangle.Empty, control.Bounds); 10449Assert.Equal(0, control.Bounds.X); 10450Assert.Equal(0, control.Bounds.Y); 10451Assert.True(control.Bounds.Width > 0); 10452Assert.True(control.Bounds.Height >= 0); 10482Assert.Equal(0, control.Bounds.X); 10483Assert.Equal(0, control.Bounds.Y); 10484Assert.True(control.Bounds.Width > 0); 10485Assert.True(control.Bounds.Height >= 0); 10556Assert.Equal(Rectangle.Empty, control.Bounds); 10575Assert.Equal(Rectangle.Empty, control.Bounds); 10648Assert.Equal(Rectangle.Empty, control.Bounds); 10667Assert.Equal(Rectangle.Empty, control.Bounds); 10739Assert.Equal(Rectangle.Empty, control.Bounds); 10761Assert.Equal(Rectangle.Empty, control.Bounds); 10806Assert.Equal(new Rectangle(1, 2, 3, 4), control.Bounds); 10828Assert.Equal(new Rectangle(1, 2, 3, 4), control.Bounds); 10884Assert.Equal(new Rectangle(1, 2, 3, 4), control.Bounds); 10910Assert.Equal(new Rectangle(1, 2, 3, 4), control.Bounds); 10996Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11015Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11107Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11126Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11205Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11224Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11314Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11334Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11437Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11459Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11566Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11593Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11691Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11710Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11800Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11820Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11935Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 11957Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 12064Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 12091Assert.Equal(new Rectangle(x, y, width, height), control.Bounds);
System\Windows\Forms\ControlTests.Properties.cs (78)
2488Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 2507Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 2577Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 2596Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 2662Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 2681Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 2767Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 2787Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 2867Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 2889Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 2992Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 3019Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 3341Assert.Equal(new Rectangle(Point.Empty, value), control.Bounds); 3351Assert.Equal(new Rectangle(Point.Empty, value), control.Bounds); 3391Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 3407Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 3454Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 3473Assert.Equal(new Rectangle(Point.Empty, expectedSize), control.Bounds); 5738Assert.Equal(new Rectangle(0, 0, 0, value), control.Bounds); 5757Assert.Equal(new Rectangle(0, 0, 0, value), control.Bounds); 5848Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 5867Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 5936Assert.Equal(new Rectangle(0, 0, 0, value), control.Bounds); 5955Assert.Equal(new Rectangle(0, 0, 0, value), control.Bounds); 6044Assert.Equal(new Rectangle(0, 0, 0, value), control.Bounds); 6064Assert.Equal(new Rectangle(0, 0, 0, value), control.Bounds); 6156Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.Bounds); 6178Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.Bounds); 6293Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.Bounds); 6320Assert.Equal(new Rectangle(0, 0, 0, expectedHeight), control.Bounds); 6702Assert.Equal(new Rectangle(value, 0, 0, 0), control.Bounds); 6724Assert.Equal(new Rectangle(value, 0, 0, 0), control.Bounds); 6793Assert.Equal(new Rectangle(value, 0, 0, 0), control.Bounds); 6815Assert.Equal(new Rectangle(value, 0, 0, 0), control.Bounds); 6892Assert.Equal(new Rectangle(value, 0, 0, 0), control.Bounds); 6917Assert.Equal(new Rectangle(value, 0, 0, 0), control.Bounds); 7002Assert.Equal(new Rectangle(value, 0, 0, 0), control.Bounds); 7031Assert.Equal(new Rectangle(value, 0, 0, 0), control.Bounds); 7183Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.Bounds); 7205Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.Bounds); 7273Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.Bounds); 7296Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.Bounds); 7375Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.Bounds); 7400Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.Bounds); 7486Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.Bounds); 7516Assert.Equal(new Rectangle(value.X, value.Y, 0, 0), control.Bounds); 11122Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.Bounds); 11141Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.Bounds); 11233Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 11252Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 11328Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.Bounds); 11347Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.Bounds); 11443Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.Bounds); 11463Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.Bounds); 11560Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 11582Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 11702Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 11729Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 12137Assert.Equal(new Rectangle(0, value, 0, 0), control.Bounds); 12158Assert.Equal(new Rectangle(0, value, 0, 0), control.Bounds); 12227Assert.Equal(new Rectangle(0, value, 0, 0), control.Bounds); 12249Assert.Equal(new Rectangle(0, value, 0, 0), control.Bounds); 12325Assert.Equal(new Rectangle(0, value, 0, 0), control.Bounds); 12349Assert.Equal(new Rectangle(0, value, 0, 0), control.Bounds); 12434Assert.Equal(new Rectangle(0, value, 0, 0), control.Bounds); 12463Assert.Equal(new Rectangle(0, value, 0, 0), control.Bounds); 13157Assert.Equal(new Rectangle(0, 0, value, 0), control.Bounds); 13176Assert.Equal(new Rectangle(0, 0, value, 0), control.Bounds); 13267Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 13286Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 13355Assert.Equal(new Rectangle(0, 0, value, 0), control.Bounds); 13374Assert.Equal(new Rectangle(0, 0, value, 0), control.Bounds); 13463Assert.Equal(new Rectangle(0, 0, value, 0), control.Bounds); 13483Assert.Equal(new Rectangle(0, 0, value, 0), control.Bounds); 13575Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.Bounds); 13597Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.Bounds); 13712Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.Bounds); 13739Assert.Equal(new Rectangle(0, 0, expectedWidth, 0), control.Bounds);
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
35Assert.Equal(new Rectangle(0, 0, 240, 150), dataGrid.Bounds); 38Rectangle bounds = dataGrid.Bounds;
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
39Assert.Equal(new Rectangle(0, 0, 100, control.PreferredHeight), control.Bounds);
System\Windows\Forms\DateTimePickerTests.cs (1)
36Assert.Equal(new Rectangle(0, 0, 200, control.PreferredHeight), control.Bounds);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
48Assert.Equal(new Rectangle(0, 0, control.Width, control.Height), control.Bounds);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
36Assert.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)
35Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds);
System\Windows\Forms\FormTests.cs (1)
46Assert.Equal(new Rectangle(0, 0, 300, 300), control.Bounds);
System\Windows\Forms\GroupBoxTests.cs (1)
32Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds);
System\Windows\Forms\HScrollBarTests.cs (4)
28Assert.Equal(0, control.Bounds.X); 29Assert.Equal(0, control.Bounds.Y); 30Assert.True(control.Bounds.Width > 0); 31Assert.True(control.Bounds.Height > 0);
System\Windows\Forms\LabelTests.cs (1)
32Assert.Equal(new Rectangle(0, 0, 100, 23), control.Bounds);
System\Windows\Forms\Layout\FlowLayoutTests.cs (28)
84Assert.Equal(new Rectangle(0, 0, 10, 20), child1.Bounds); 85Assert.Equal(new Rectangle(11, 2, 10, 20), child2.Bounds); 86Assert.Equal(new Rectangle(24, 0, 100, 200), largeChild.Bounds); 87Assert.Equal(new Rectangle(127, 3, 0, 0), emptyChild.Bounds); 88Assert.Equal(new Rectangle(131, 2, 0, 0), emptyChildWithMargin.Bounds); 89Assert.Equal(new Rectangle(134, 0, 50, 100), child3.Bounds); 90Assert.Equal(new Rectangle(184, 0, 10, 20), child4.Bounds); 145Assert.Equal(new Rectangle(190, 0, 10, 20), child1.Bounds); 146Assert.Equal(new Rectangle(177, 2, 10, 20), child2.Bounds); 147Assert.Equal(new Rectangle(76, 0, 100, 200), largeChild.Bounds); 148Assert.Equal(new Rectangle(73, 3, 0, 0), emptyChild.Bounds); 149Assert.Equal(new Rectangle(67, 2, 0, 0), emptyChildWithMargin.Bounds); 150Assert.Equal(new Rectangle(16, 0, 50, 100), child3.Bounds); 151Assert.Equal(new Rectangle(6, 0, 10, 20), child4.Bounds); 206Assert.Equal(new Rectangle(0, 0, 10, 20), child1.Bounds); 207Assert.Equal(new Rectangle(1, 22, 10, 20), child2.Bounds); 208Assert.Equal(new Rectangle(14, 0, 100, 200), largeChild.Bounds); 209Assert.Equal(new Rectangle(117, 3, 0, 0), emptyChild.Bounds); 210Assert.Equal(new Rectangle(115, 8, 0, 0), emptyChildWithMargin.Bounds); 211Assert.Equal(new Rectangle(120, 0, 50, 100), child3.Bounds); 212Assert.Equal(new Rectangle(170, 0, 10, 20), child4.Bounds); 267Assert.Equal(new Rectangle(0, 80, 10, 20), child1.Bounds); 268Assert.Equal(new Rectangle(1, 56, 10, 20), child2.Bounds); 269Assert.Equal(new Rectangle(14, -100, 100, 200), largeChild.Bounds); 270Assert.Equal(new Rectangle(117, 97, 0, 0), emptyChild.Bounds); 271Assert.Equal(new Rectangle(115, 90, 0, 0), emptyChildWithMargin.Bounds); 272Assert.Equal(new Rectangle(120, 0, 50, 100), child3.Bounds); 273Assert.Equal(new Rectangle(170, 80, 10, 20), child4.Bounds);
System\Windows\Forms\ListBoxTests.cs (1)
33Assert.Equal(new Rectangle(0, 0, 120, 96), control.Bounds);
System\Windows\Forms\ListControlTests.cs (1)
33Assert.Equal(Rectangle.Empty, control.Bounds);
System\Windows\Forms\ListViewTests.cs (1)
40Assert.Equal(new Rectangle(0, 0, 121, 97), control.Bounds);
System\Windows\Forms\MdiClientTests.cs (11)
31Assert.Equal(Rectangle.Empty, control.Bounds); 547Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.Bounds); 566Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.Bounds); 649Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 671Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 783Assert.Equal(Rectangle.Empty, control.Bounds); 810Assert.Equal(Rectangle.Empty, control.Bounds); 935Assert.Equal(Rectangle.Empty, control.Bounds); 962Assert.Equal(Rectangle.Empty, control.Bounds); 1097Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds); 1124Assert.Equal(new Rectangle(0, 0, expectedWidth, expectedHeight), control.Bounds);
System\Windows\Forms\MenuStripTests.cs (1)
35Assert.Equal(new Rectangle(0, 0, 200, 24), control.Bounds);
System\Windows\Forms\MonthCalendarTests.cs (8)
37Assert.Equal(0, control.Bounds.X); 38Assert.Equal(0, control.Bounds.Y); 39Assert.True(control.Bounds.Width > 0); 40Assert.True(control.Bounds.Height > 0); 2530Assert.Equal(new Rectangle(Point.Empty, size), control.Bounds); 2539Assert.Equal(new Rectangle(Point.Empty, size), control.Bounds); 2563Assert.Equal(new Rectangle(Point.Empty, size), control.Bounds); 2575Assert.Equal(new Rectangle(Point.Empty, size), control.Bounds);
System\Windows\Forms\PanelTests.cs (1)
36Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds);
System\Windows\Forms\PictureBoxTests.cs (1)
35Assert.Equal(new Rectangle(0, 0, 100, 50), control.Bounds);
System\Windows\Forms\ProgressBarTests.cs (1)
31Assert.Equal(new Rectangle(0, 0, 100, 23), control.Bounds);
System\Windows\Forms\PropertyGridTests.cs (1)
46Assert.Equal(new Rectangle(0, 0, 130, 130), control.Bounds);
System\Windows\Forms\RadioButtonRendererTests.cs (4)
28Rectangle bounds = control.Bounds; 59Rectangle bounds = control.Bounds; 96Rectangle bounds = control.Bounds; 115Rectangle bounds = control.Bounds;
System\Windows\Forms\RadioButtonTests.cs (1)
35Assert.Equal(new Rectangle(0, 0, 104, 24), control.Bounds);
System\Windows\Forms\RichTextBoxTests.cs (1)
43Assert.Equal(new Rectangle(0, 0, 100, 96), control.Bounds);
System\Windows\Forms\ScrollableControlTests.cs (5)
35Assert.Equal(Rectangle.Empty, control.Bounds); 2341Assert.Equal(child.ExpectedSize, child.Bounds); 2347Assert.Equal(child.ExpectedSize, child.Bounds); 2413Assert.Equal(child.ExpectedSize, child.Bounds); 2419Assert.Equal(new Rectangle(expectedDisplayRectangleLocation, child.ExpectedSize.Size), child.Bounds);
System\Windows\Forms\ScrollBarTests.cs (1)
30Assert.Equal(Rectangle.Empty, control.Bounds);
System\Windows\Forms\SplitterPanelTests.cs (9)
42Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds); 473Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds); 492Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds); 551Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.Bounds); 573Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.Bounds); 838Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.Bounds); 857Assert.Equal(new Rectangle(0, 0, value.Width, value.Height), control.Bounds); 1195Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds); 1214Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds);
System\Windows\Forms\SplitterTests.cs (3)
31Assert.Equal(new Rectangle(0, 0, 3, 3), control.Bounds); 1421Assert.Equal(control.Left + control.Bounds.Width / 2, e.SplitX); 1422Assert.Equal(control.Top + control.Bounds.Height / 2, e.SplitY);
System\Windows\Forms\StatusStripTests.cs (2)
35Assert.Equal(new Rectangle(0, 0, 200, 22), control.Bounds); 1186Assert.Equal(control.SizeGripBounds, grip.Bounds);
System\Windows\Forms\StatusStripTests.Rendering.cs (1)
35Rectangle bounds = statusStrip.Bounds;
System\Windows\Forms\TabControl.ControlCollectionTests.cs (44)
72Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 90Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 94Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 119Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 122Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 202Assert.Equal(owner.DisplayRectangle, value1.Bounds); 229Assert.Equal(owner.DisplayRectangle, value1.Bounds); 233Assert.Equal(owner.DisplayRectangle, value2.Bounds); 270Assert.Equal(owner.DisplayRectangle, value1.Bounds); 274Assert.Equal(owner.DisplayRectangle, value2.Bounds); 369Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 390Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 394Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 425Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 428Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 517Assert.Equal(owner.DisplayRectangle, value1.Bounds); 547Assert.Equal(owner.DisplayRectangle, value1.Bounds); 551Assert.Equal(owner.DisplayRectangle, value2.Bounds); 594Assert.Equal(owner.DisplayRectangle, value1.Bounds); 598Assert.Equal(owner.DisplayRectangle, value2.Bounds); 925Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 929Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 945Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 949Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 965Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 969Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 1037Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 1041Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 1060Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 1064Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 1086Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 1090Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 1155Assert.Equal(owner.DisplayRectangle, value1.Bounds); 1159Assert.Equal(owner.DisplayRectangle, value2.Bounds); 1178Assert.Equal(owner.DisplayRectangle, value1.Bounds); 1182Assert.Equal(owner.DisplayRectangle, value2.Bounds); 1201Assert.Equal(new Rectangle(4, 24, 392, 272), value1.Bounds); 1205Assert.Equal(new Rectangle(4, 24, 392, 272), value2.Bounds); 1274Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 1278Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 1297Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 1301Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 1323Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 1327Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds);
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (80)
58Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 77Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 81Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 107Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 110Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 191Assert.Equal(owner.DisplayRectangle, value1.Bounds); 219Assert.Equal(owner.DisplayRectangle, value1.Bounds); 223Assert.Equal(owner.DisplayRectangle, value2.Bounds); 261Assert.Equal(owner.DisplayRectangle, value1.Bounds); 265Assert.Equal(owner.DisplayRectangle, value2.Bounds); 361Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 383Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 387Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 419Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 422Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 512Assert.Equal(owner.DisplayRectangle, value1.Bounds); 543Assert.Equal(owner.DisplayRectangle, value1.Bounds); 547Assert.Equal(owner.DisplayRectangle, value2.Bounds); 591Assert.Equal(owner.DisplayRectangle, value1.Bounds); 595Assert.Equal(owner.DisplayRectangle, value2.Bounds); 1005Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 1023Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 1027Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 1052Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 1055Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 2000Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 2019Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 2023Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 2051Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 2054Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 2128Assert.Equal(owner.DisplayRectangle, value1.Bounds); 2156Assert.Equal(owner.DisplayRectangle, value1.Bounds); 2160Assert.Equal(owner.DisplayRectangle, value2.Bounds); 2200Assert.Equal(owner.DisplayRectangle, value1.Bounds); 2204Assert.Equal(owner.DisplayRectangle, value2.Bounds); 2304Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 2326Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 2330Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 2364Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 2367Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 2461Assert.Equal(owner.DisplayRectangle, value1.Bounds); 2492Assert.Equal(owner.DisplayRectangle, value1.Bounds); 2496Assert.Equal(owner.DisplayRectangle, value2.Bounds); 2542Assert.Equal(owner.DisplayRectangle, value1.Bounds); 2546Assert.Equal(owner.DisplayRectangle, value2.Bounds); 3046Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 3065Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 3069Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 3097Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 3100Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4012Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4016Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4033Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4037Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4054Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4058Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4127Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4131Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4151Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4155Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4178Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4182Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4250Assert.Equal(new Rectangle(4, 24, 392, 272), value1.Bounds); 4254Assert.Equal(new Rectangle(4, 24, 392, 272), value2.Bounds); 4274Assert.Equal(new Rectangle(4, 24, 392, 272), value1.Bounds); 4278Assert.Equal(new Rectangle(4, 24, 392, 272), value2.Bounds); 4298Assert.Equal(new Rectangle(4, 24, 392, 272), value1.Bounds); 4302Assert.Equal(new Rectangle(4, 24, 392, 272), value2.Bounds); 4374Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4378Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4398Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4402Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4425Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4429Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4731Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4735Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4751Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4755Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds); 4771Assert.Equal(new Rectangle(0, 0, 200, 100), value1.Bounds); 4775Assert.Equal(new Rectangle(0, 0, 200, 100), value2.Bounds);
System\Windows\Forms\TabControlTests.cs (1)
33Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
37Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds);
System\Windows\Forms\TabPageTests.cs (18)
40Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds); 149Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds); 1909Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.Bounds); 1931Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.Bounds); 1999Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.Bounds); 2022Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.Bounds); 2100Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.Bounds); 2125Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.Bounds); 2224Assert.Equal(expected, control.Bounds); 2254Assert.Equal(expected, control.Bounds); 4355Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 4376Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 4492Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 4514Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 4647Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 4671Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 4826Assert.Equal(expected, control.Bounds); 4856Assert.Equal(expected, control.Bounds);
System\Windows\Forms\TextBoxRendererTests.cs (3)
36Rectangle bounds = textbox.Bounds; 65Rectangle bounds = textbox.Bounds; 100Rectangle bounds = textbox.Bounds;
System\Windows\Forms\ToolStripContentPanelTests.cs (3)
38Assert.Equal(new Rectangle(0, 0, 200, 100), control.Bounds); 950Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.Bounds); 972Assert.Equal(new Rectangle(value.X, value.Y, 200, 100), control.Bounds);
System\Windows\Forms\ToolStripControlHostTests.cs (7)
63Assert.Equal(c.Bounds, item.Bounds); 708Assert.Equal(new Rectangle(10, 20, 30, 40), c.Bounds); 715Assert.Equal(new Rectangle(10, 20, 30, 40), c.Bounds); 2214Assert.Equal(new Rectangle(1, 2, value.Width, value.Height), c.Bounds); 2220Assert.Equal(new Rectangle(1, 2, value.Width, value.Height), c.Bounds); 2779Assert.Equal(new Rectangle(10, 20, 30, 40), c.Bounds); 2785Assert.Equal(new Rectangle(10, 20, 30, 40), c.Bounds);
System\Windows\Forms\ToolStripDropDownTests.cs (3)
39Assert.Equal(new Rectangle(0, 0, 100, 25), control.Bounds); 1976Assert.Equal(new Rectangle(expected.X, expected.Y, 100, 25), control.Bounds); 1998Assert.Equal(new Rectangle(expected.X, expected.Y, 100, 25), control.Bounds);
System\Windows\Forms\ToolStripPanelTests.cs (1)
37Assert.Equal(Rectangle.Empty, control.Bounds);
System\Windows\Forms\ToolStripTests.cs (2)
39Assert.Equal(new Rectangle(0, 0, 100, 25), control.Bounds); 197Assert.Equal(new Rectangle(0, 0, 100, 25), control.Bounds);
System\Windows\Forms\ToolStripTests.Rendering.cs (1)
29Rectangle bounds = toolStrip.Bounds;
System\Windows\Forms\TreeViewTests.cs (1)
31Assert.Equal(new Rectangle(0, 0, 121, 97), control.Bounds);
System\Windows\Forms\UpDownBaseTests.cs (3)
36Assert.Equal(new Rectangle(0, 0, 120, control.PreferredHeight), control.Bounds); 2773Assert.Equal(new Rectangle(x, y, width, preferredHeight), control.Bounds); 2805Assert.Equal(new Rectangle(x, y, width, preferredHeight), control.Bounds);
System\Windows\Forms\UserControlTests.cs (1)
41Assert.Equal(new Rectangle(0, 0, 150, 150), control.Bounds);
System\Windows\Forms\VScrollBarTests.cs (4)
27Assert.Equal(0, control.Bounds.X); 28Assert.Equal(0, control.Bounds.Y); 29Assert.True(control.Bounds.Width > 0); 30Assert.True(control.Bounds.Height > 0);
System\Windows\Forms\WebBrowserTests.cs (1)
31Assert.Equal(new Rectangle(0, 0, 250, 250), control.Bounds);
TextBoxBaseTests.cs (6)
6546Assert.Equal(new Rectangle(x, y, width, s_preferredHeight), control.Bounds); 6567Assert.Equal(new Rectangle(x, y, width, s_preferredHeight), control.Bounds); 6680Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 6701Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 6796Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 6817Assert.Equal(new Rectangle(x, y, width, height), control.Bounds);
TextBoxTests.cs (1)
38Assert.Equal(new Rectangle(0, 0, 100, control.PreferredHeight), control.Bounds);
TrackBarTests.cs (3)
32Assert.Equal(new Rectangle(0, 0, 104, s_dimension), control.Bounds); 3006Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 3027Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds);
WebBrowserBaseTests.cs (4)
85Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 104Assert.Equal(new Rectangle(x, y, width, height), control.Bounds); 201Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds); 223Assert.Equal(new Rectangle(x, y, expectedWidth, expectedHeight), control.Bounds);
System.Windows.Forms.UI.IntegrationTests (10)
AnchorLayoutTests.cs (7)
222var bounds = button.Bounds; 224Assert.Equal(bounds, button.Bounds); // Bounds Specified is None. 227Assert.NotEqual(bounds, button.Bounds); // Bounds Specified is None. 229bounds = button.Bounds; 231Assert.NotEqual(bounds, button.Bounds); 242Rectangle newButtonBounds = button.Bounds; 266newButtonBounds = button.Bounds;
Dpi\FormDpiTests.cs (3)
34Drawing.Rectangle initialBounds = form.Bounds; 41Assert.NotEqual(initialBounds.Width, form.Bounds.Width); 42Assert.NotEqual(initialBounds.Height, form.Bounds.Height);