4 implementations of Bounds
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
1008
public Rectangle
Bounds
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
546
public virtual Rectangle
Bounds
=> _bounds;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.cs (1)
61
public Rectangle
Bounds
System\Windows\Forms\Layout\ArrangedElement.cs (1)
27
public Rectangle
Bounds
48 references to Bounds
System.Windows.Forms (48)
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRow.HorizontalRowManager.cs (2)
413
if (Row.Cells[index].
Bounds
.Contains(locationToDrag))
421
if (Row.Cells[index].
Bounds
.X >= locationToDrag.X)
System\Windows\Forms\Layout\CommonProperties.cs (3)
155
: element.
Bounds
;
206
Rectangle bounds = element.
Bounds
;
230
Rectangle bounds = element.
Bounds
;
System\Windows\Forms\Layout\DefaultLayout.cs (25)
302
if (right < left || cachedBounds.Width != element.
Bounds
.Width || cachedBounds.X != element.
Bounds
.X)
304
if (cachedBounds != element.
Bounds
)
309
right = left + Math.Max(element.
Bounds
.Width, cachedBounds.Width) + Math.Abs(right);
313
left = left > 0 ? left : element.
Bounds
.Left;
314
right = right > 0 ? right : element.
Bounds
.Right + Math.Abs(right);
320
if (bottom < top || cachedBounds.Height != element.
Bounds
.Height || cachedBounds.Y != element.
Bounds
.Y)
322
if (cachedBounds != element.
Bounds
)
327
bottom = top + Math.Max(element.
Bounds
.Height, cachedBounds.Height) + Math.Abs(bottom);
331
top = top > 0 ? top : element.
Bounds
.Top;
332
bottom = bottom > 0 ? bottom : element.
Bounds
.Bottom + Math.Abs(bottom);
391
Debug.Assert(element.
Bounds
== GetCachedBounds(element), "Why do we have cachedBounds for a docked element?");
406
remainingBounds.Y += element.
Bounds
.Height;
407
remainingBounds.Height -= element.
Bounds
.Height;
419
remainingBounds.Height -= element.
Bounds
.Height;
432
remainingBounds.X += element.
Bounds
.Width;
433
remainingBounds.Width -= element.
Bounds
.Width;
445
remainingBounds.Width -= element.
Bounds
.Width;
529
(newElementBounds.Width < 0 || element.
Bounds
.Width == newElementBounds.Width) &&
530
(newElementBounds.Height < 0 || element.
Bounds
.Height == newElementBounds.Height),
583
desiredSize = element.
Bounds
.Size;
742
Rectangle elementBounds = element.
Bounds
;
1017
return element.
Bounds
;
1093
Debug.Assert(specified == BoundsSpecified.None || GetCachedBounds(element) == element.
Bounds
,
System\Windows\Forms\Layout\FlowLayout.cs (16)
322
Debug.Assert(container.Children[0].
Bounds
.Y == margin.Top + container.DisplayRectangle.Y);
323
Debug.Assert(container.Children[0].
Bounds
.X == margin.Left + container.DisplayRectangle.X);
326
Debug.Assert(container.Children[0].
Bounds
.X == container.DisplayRectangle.X + container.DisplayRectangle.Width - container.Children[0].
Bounds
.Width - margin.Right);
327
Debug.Assert(container.Children[0].
Bounds
.Y == margin.Top + container.DisplayRectangle.Y);
330
Debug.Assert(container.Children[0].
Bounds
.Y == container.DisplayRectangle.Y + container.DisplayRectangle.Height - container.Children[0].
Bounds
.Height - margin.Bottom);
331
Debug.Assert(container.Children[0].
Bounds
.X == margin.Left + container.DisplayRectangle.X);
343
Debug.Assert(collection[i].
Bounds
.Y >= container.DisplayRectangle.Y);
344
Debug.Assert(collection[i].
Bounds
.X >= container.DisplayRectangle.X);
347
Debug.Assert(collection[i].
Bounds
.Y >= container.DisplayRectangle.Y);
348
Debug.Assert(collection[i].
Bounds
.X + collection[i].
Bounds
.Width <= container.DisplayRectangle.X + container.DisplayRectangle.Width);
351
Debug.Assert(collection[i].
Bounds
.Y + collection[i].
Bounds
.Height <= container.DisplayRectangle.Y + container.DisplayRectangle.Height);
352
Debug.Assert(collection[i].
Bounds
.X >= container.DisplayRectangle.X);
System\Windows\Forms\Layout\TableLayout.cs (2)
1474
Rectangle elementBounds1 = layoutInfo1.Element.
Bounds
;
1479
Rectangle elementBounds2 = layoutInfo2.Element.
Bounds
;