Implemented interface member:
property
Bounds
System.Windows.Forms.Layout.IArrangedElement.Bounds
36 writes to Bounds
System.Windows.Forms (30)
System\Windows\Forms\ActiveX\AxHost.cs (3)
1414Bounds = b; 3256Bounds = new Rectangle(location.X, location.Y, ocxExtent.Width, ocxExtent.Height); 3263Bounds = 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)
57contextMenuStrip.Bounds = Bounds;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (2)
10318_horizScrollBar.Bounds = new Rectangle( 10359_vertScrollBar.Bounds = new Rectangle(
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2613_toolStrip.Bounds = toolStripBounds;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1999ScrollBar.Bounds = boundsScroll;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
468Bounds = newBounds;
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
417spd._target.Bounds = bounds;
System\Windows\Forms\Controls\TabControl\TabControl.ControlCollection.cs (1)
48tabPage.Bounds = _owner.DisplayRectangle;
System\Windows\Forms\Controls\TabControl\TabControl.cs (2)
1633pages[i].Bounds = rect; 1843tabPages[index].Bounds = DisplayRectangle;
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
274RTLGrip.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)
880_upDownEdit?.Bounds = upDownEditBounds; 884_upDownButtons.Bounds = upDownButtonsBounds;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
785Bounds = 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)
3132Bounds = bounds; 3145Bounds = 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)
1987Bounds = rc;
System\Windows\Forms\Design\DesignerFrame.cs (2)
393c.Bounds = client; 423control.Bounds = DisplayRectangle;
System\Windows\Forms\Design\SelectionUIHandler.cs (2)
80controls[i].Bounds = b; 375controls[i].Bounds = newBounds;
142 references to Bounds
System.Windows.Forms (80)
System\Windows\Forms\ActiveX\AxHost.cs (3)
1196Rectangle oldBounds = Bounds; 1408Rectangle b = Bounds; 2147RECT posRect = Bounds;
System\Windows\Forms\ActiveX\AxHost.OleInterfaces.cs (1)
393*lprcPosRect = _host.Bounds;
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
1701Rectangle bounds = _control.Bounds;
System\Windows\Forms\ContextMenuStrip.cs (1)
57contextMenuStrip.Bounds = Bounds;
System\Windows\Forms\Control.cs (4)
4569originalBounds = Bounds; 4616if (Bounds != originalBounds) 8848child.PrintToMetaFileRecursive(hDC, lParam, child.Bounds); 9810Rectangle rawScaledBounds = GetScaledBounds(Bounds, factor, specified);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3763using RegionScope windowRegion = new(Bounds);
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (4)
2184return EditingControl.Bounds.Contains(ptMouse); 2198return _editingPanel.Bounds.Contains(ptMouse); 2212if (_vertScrollBar.Bounds.Contains(ptMouse)) 2220return _horizScrollBar.Bounds.Contains(ptMouse);
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
9290if (_horizScrollBar is not null && _horizScrollBar.Visible && _horizScrollBar.Bounds.Contains(x, y)) 9296if (_vertScrollBar is not null && _vertScrollBar.Visible && _vertScrollBar.Bounds.Contains(x, y)) 10433&& _editingPanel.Bounds.IntersectsWith(lastSplitBarRect)) 10501&& _editingPanel.Bounds.IntersectsWith(lastSplitBarRect))
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1650Rectangle oldBounds = Bounds;
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (3)
1877Rectangle rectangle = _gridView.Bounds; 1949Rectangle rectTarget = target.Bounds; 2816Rectangle rectDoc = _targetMove!.Bounds;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (2)
903Rectangle rectCur = control.Bounds; 1995Rectangle 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)
398Rectangle bounds = spd._target.Bounds; 557Rectangle r = Bounds; 558Rectangle bounds = splitTarget.Bounds; 609Rectangle r = target.Bounds; 632_initTargetSize = target.Bounds.Width; 636_initTargetSize = target.Bounds.Height;
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
367RECT 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; 1198Rectangle bounds = Bounds; 1706Rectangle bounds = Bounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (1)
829int height = GetDropDownBounds(Bounds).Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanel.cs (4)
1088Rectangle intersection = c1.Bounds; 1089intersection.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)
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)
391Rectangle r = Bounds;
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2952else if (tn is not null && tn.Bounds.Right > Bounds.Right)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
516Rectangle 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)
195RECT posRect = Host.Bounds; 232RECT 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)
896Rectangle bounds = Bounds; 1309Rectangle bounds = Bounds; 1673return Bounds; 3107Rectangle 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)
190Rectangle bounds = Bounds; 226Rectangle oldBounds = Bounds; 228Rectangle newBounds = Bounds; 285Rectangle bounds = Bounds;
System\Windows\Forms\Scrolling\ScrollableControl.cs (2)
452Rectangle bounds = current.Bounds; 852Rectangle 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)
471Rectangle 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)
3304Rectangle childBounds = child.Bounds; 3327Rectangle pasteControlBounds = pasteControl.Bounds;
System\Windows\Forms\Design\ComponentTray.cs (7)
193Rectangle bounds = control.Bounds; 1366Rectangle bounds = child.Bounds; 1442Rectangle innerRect = c.Bounds; 1844Rectangle bounds = prevCtl.Bounds; 1974Rectangle rc = Bounds; 2402Rectangle bounds = Bounds; 2742desGlyph.UpdateAlternativeBounds(trayControl.Bounds);
System\Windows\Forms\Design\ControlCommandSet.cs (1)
717Rectangle newRect = parentDesigner.GetSnappedRect(primaryControl.Bounds, dragRect, true);
System\Windows\Forms\Design\DesignerFrame.cs (1)
480Rectangle 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)
100bounds = bounds.IsEmpty ? childControl.Bounds : Rectangle.Union(bounds, childControl.Bounds); 109defaultValues["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)
273Rectangle oldBounds = controls[i].Bounds;
System\Windows\Forms\Design\StatusCommandUI.cs (2)
48bounds = c.Bounds; 77bounds = c.Bounds;
System\Windows\Forms\Design\TabOrder.cs (2)
317screenRectangle = parent.RectangleToScreen(control.Bounds); 343Rectangle convertedBounds = control.Bounds;
System\Windows\Forms\Design\ToolStripDesigner.cs (3)
101rect = _miniToolStrip.Bounds; 1086_boundsToInvalidate = dropDownItem.DropDown.Bounds; 2013_toolStripAdornerWindowService.Invalidate(ddi.DropDown.Bounds);
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (2)
136bounds = _dropDown.Bounds; 688Rectangle 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)
990GetService<BehaviorService>().Invalidate(parentDropDown.Bounds);
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (12)
1103_rootControlGlyph = new ToolStripDropDownGlyph(rootControl.Bounds, new DropDownBehavior(designer, this)); 1137_toolStripAdornerWindowService?.Invalidate(ddi.DropDown.Bounds); 1154invalidatingRegion.Exclude(dropDown.Bounds); 1171_rootControlGlyph = new ToolStripDropDownGlyph(dropDown.Bounds, new DropDownBehavior(designer, this)); 1178_dropDownSizeToInvalidate = dropDown.Bounds; 1581GetService<BehaviorService>()?.Invalidate(MenuItem.Owner.Bounds); 1619Rectangle hostingDropDownBounds = (MenuItem.GetCurrentParent()).Bounds; 1621Rectangle itemDropDownBounds = MenuItem.DropDown.Bounds; 1885regionToInvalidate.Exclude(MenuItem.DropDown.Bounds); 1934_boundsToInvalidateOnRemove = ownerItem.DropDown.Bounds; 1938_boundsToInvalidateOnRemove = Rectangle.Union(_boundsToInvalidateOnRemove, dropDownItem.DropDown.Bounds); 2274Rectangle bounds = ownerItem.DropDown.Bounds;