4 implementations of Bounds
System.Windows.Forms (4)
winforms\Managed\System\WinForms\ArrangedElement.cs (1)
40public Rectangle Bounds {
winforms\Managed\System\WinForms\Control.cs (1)
1370public Rectangle Bounds {
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
584public virtual Rectangle Bounds {
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
86public Rectangle Bounds {
33 references to Bounds
System.Windows.Forms (33)
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (3)
160return element.Bounds; 213Rectangle bounds = element.Bounds; 235Rectangle bounds = element.Bounds;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (26)
193if (right < left || cachedBounds.Width != element.Bounds.Width || cachedBounds.X != element.Bounds.X) { 194if (cachedBounds != element.Bounds) { 197right = left + Math.Max(element.Bounds.Width, cachedBounds.Width) + Math.Abs(right); 200left = left > 0 ? left : element.Bounds.Left; 201right = right > 0 ? right : element.Bounds.Right + Math.Abs(right); 207if (bottom < top || cachedBounds.Height != element.Bounds.Height || cachedBounds.Y != element.Bounds.Y) { 208if (cachedBounds != element.Bounds) { 211bottom = top + Math.Max(element.Bounds.Height, cachedBounds.Height) + Math.Abs(bottom); 214top = top > 0 ? top : element.Bounds.Top; 215bottom = bottom > 0 ? bottom : element.Bounds.Bottom + Math.Abs(bottom); 270Debug.Assert(element.Bounds == GetCachedBounds(element), "Why do we have cachedBounds for a docked element?"); 283remainingBounds.Y += element.Bounds.Height; 284remainingBounds.Height -= element.Bounds.Height; 294remainingBounds.Height -= element.Bounds.Height; 305remainingBounds.X += element.Bounds.Width; 306remainingBounds.Width -= element.Bounds.Width; 316remainingBounds.Width -= element.Bounds.Width; 445desiredSize = element.Bounds.Size; 563anchorInfo.Left = element.Bounds.Left; 564anchorInfo.Top = element.Bounds.Top; 565anchorInfo.Right = element.Bounds.Right; 566anchorInfo.Bottom = element.Bounds.Bottom; 724return element.Bounds; 796Debug.Assert(specified == BoundsSpecified.None || GetCachedBounds(element) == element.Bounds,
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
2083Rectangle elementBounds1 = layoutInfo1.Element.Bounds; 2087Rectangle elementBounds2 = layoutInfo2.Element.Bounds;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (2)
1288if (Row.Cells[index].Bounds.Contains(locationToDrag)) { 1295if (Row.Cells[index].Bounds.X >= locationToDrag.X) {