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