4 implementations of Bounds
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
1007public Rectangle Bounds
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
546public virtual Rectangle Bounds => _bounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
61public Rectangle Bounds
System\Windows\Forms\Layout\ArrangedElement.cs (1)
27public Rectangle Bounds
48 references to Bounds
System.Windows.Forms (48)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (2)
413if (Row.Cells[index].Bounds.Contains(locationToDrag)) 421if (Row.Cells[index].Bounds.X >= locationToDrag.X)
System\Windows\Forms\Layout\CommonProperties.cs (3)
155: element.Bounds; 206Rectangle bounds = element.Bounds; 230Rectangle bounds = element.Bounds;
System\Windows\Forms\Layout\DefaultLayout.cs (25)
301if (right < left || cachedBounds.Width != element.Bounds.Width || cachedBounds.X != element.Bounds.X) 303if (cachedBounds != element.Bounds) 308right = left + Math.Max(element.Bounds.Width, cachedBounds.Width) + Math.Abs(right); 312left = left > 0 ? left : element.Bounds.Left; 313right = right > 0 ? right : element.Bounds.Right + Math.Abs(right); 319if (bottom < top || cachedBounds.Height != element.Bounds.Height || cachedBounds.Y != element.Bounds.Y) 321if (cachedBounds != element.Bounds) 326bottom = top + Math.Max(element.Bounds.Height, cachedBounds.Height) + Math.Abs(bottom); 330top = top > 0 ? top : element.Bounds.Top; 331bottom = bottom > 0 ? bottom : element.Bounds.Bottom + Math.Abs(bottom); 390Debug.Assert(element.Bounds == GetCachedBounds(element), "Why do we have cachedBounds for a docked element?"); 405remainingBounds.Y += element.Bounds.Height; 406remainingBounds.Height -= element.Bounds.Height; 418remainingBounds.Height -= element.Bounds.Height; 431remainingBounds.X += element.Bounds.Width; 432remainingBounds.Width -= element.Bounds.Width; 444remainingBounds.Width -= element.Bounds.Width; 528(newElementBounds.Width < 0 || element.Bounds.Width == newElementBounds.Width) && 529(newElementBounds.Height < 0 || element.Bounds.Height == newElementBounds.Height), 582desiredSize = element.Bounds.Size; 741Rectangle elementBounds = element.Bounds; 1016return element.Bounds; 1092Debug.Assert(specified == BoundsSpecified.None || GetCachedBounds(element) == element.Bounds,
System\Windows\Forms\Layout\FlowLayout.cs (16)
322Debug.Assert(container.Children[0].Bounds.Y == margin.Top + container.DisplayRectangle.Y); 323Debug.Assert(container.Children[0].Bounds.X == margin.Left + container.DisplayRectangle.X); 326Debug.Assert(container.Children[0].Bounds.X == container.DisplayRectangle.X + container.DisplayRectangle.Width - container.Children[0].Bounds.Width - margin.Right); 327Debug.Assert(container.Children[0].Bounds.Y == margin.Top + container.DisplayRectangle.Y); 330Debug.Assert(container.Children[0].Bounds.Y == container.DisplayRectangle.Y + container.DisplayRectangle.Height - container.Children[0].Bounds.Height - margin.Bottom); 331Debug.Assert(container.Children[0].Bounds.X == margin.Left + container.DisplayRectangle.X); 343Debug.Assert(collection[i].Bounds.Y >= container.DisplayRectangle.Y); 344Debug.Assert(collection[i].Bounds.X >= container.DisplayRectangle.X); 347Debug.Assert(collection[i].Bounds.Y >= container.DisplayRectangle.Y); 348Debug.Assert(collection[i].Bounds.X + collection[i].Bounds.Width <= container.DisplayRectangle.X + container.DisplayRectangle.Width); 351Debug.Assert(collection[i].Bounds.Y + collection[i].Bounds.Height <= container.DisplayRectangle.Y + container.DisplayRectangle.Height); 352Debug.Assert(collection[i].Bounds.X >= container.DisplayRectangle.X);
System\Windows\Forms\Layout\TableLayout.cs (2)
1474Rectangle elementBounds1 = layoutInfo1.Element.Bounds; 1479Rectangle elementBounds2 = layoutInfo2.Element.Bounds;