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)
159return element.Bounds; 211Rectangle bounds = element.Bounds; 235Rectangle bounds = element.Bounds;
System\Windows\Forms\Layout\DefaultLayout.cs (25)
302if (right < left || cachedBounds.Width != element.Bounds.Width || cachedBounds.X != element.Bounds.X) 304if (cachedBounds != element.Bounds) 309right = left + Math.Max(element.Bounds.Width, cachedBounds.Width) + Math.Abs(right); 313left = left > 0 ? left : element.Bounds.Left; 314right = right > 0 ? right : element.Bounds.Right + Math.Abs(right); 320if (bottom < top || cachedBounds.Height != element.Bounds.Height || cachedBounds.Y != element.Bounds.Y) 322if (cachedBounds != element.Bounds) 327bottom = top + Math.Max(element.Bounds.Height, cachedBounds.Height) + Math.Abs(bottom); 331top = top > 0 ? top : element.Bounds.Top; 332bottom = bottom > 0 ? bottom : element.Bounds.Bottom + Math.Abs(bottom); 391Debug.Assert(element.Bounds == GetCachedBounds(element), "Why do we have cachedBounds for a docked element?"); 406remainingBounds.Y += element.Bounds.Height; 407remainingBounds.Height -= element.Bounds.Height; 419remainingBounds.Height -= element.Bounds.Height; 432remainingBounds.X += element.Bounds.Width; 433remainingBounds.Width -= element.Bounds.Width; 445remainingBounds.Width -= element.Bounds.Width; 529(newElementBounds.Width < 0 || element.Bounds.Width == newElementBounds.Width) && 530(newElementBounds.Height < 0 || element.Bounds.Height == newElementBounds.Height), 583desiredSize = element.Bounds.Size; 742Rectangle elementBounds = element.Bounds; 1017return element.Bounds; 1093Debug.Assert(specified == BoundsSpecified.None || GetCachedBounds(element) == element.Bounds,
System\Windows\Forms\Layout\FlowLayout.cs (16)
321Debug.Assert(container.Children[0].Bounds.Y == margin.Top + container.DisplayRectangle.Y); 322Debug.Assert(container.Children[0].Bounds.X == margin.Left + container.DisplayRectangle.X); 325Debug.Assert(container.Children[0].Bounds.X == container.DisplayRectangle.X + container.DisplayRectangle.Width - container.Children[0].Bounds.Width - margin.Right); 326Debug.Assert(container.Children[0].Bounds.Y == margin.Top + container.DisplayRectangle.Y); 329Debug.Assert(container.Children[0].Bounds.Y == container.DisplayRectangle.Y + container.DisplayRectangle.Height - container.Children[0].Bounds.Height - margin.Bottom); 330Debug.Assert(container.Children[0].Bounds.X == margin.Left + container.DisplayRectangle.X); 342Debug.Assert(collection[i].Bounds.Y >= container.DisplayRectangle.Y); 343Debug.Assert(collection[i].Bounds.X >= container.DisplayRectangle.X); 346Debug.Assert(collection[i].Bounds.Y >= container.DisplayRectangle.Y); 347Debug.Assert(collection[i].Bounds.X + collection[i].Bounds.Width <= container.DisplayRectangle.X + container.DisplayRectangle.Width); 350Debug.Assert(collection[i].Bounds.Y + collection[i].Bounds.Height <= container.DisplayRectangle.Y + container.DisplayRectangle.Height); 351Debug.Assert(collection[i].Bounds.X >= container.DisplayRectangle.X);
System\Windows\Forms\Layout\TableLayout.cs (2)
1475Rectangle elementBounds1 = layoutInfo1.Element.Bounds; 1480Rectangle elementBounds2 = layoutInfo2.Element.Bounds;