4 implementations of Bounds
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
1008public 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)
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)
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;