4 implementations of Bounds
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
1007
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)
159
return element.
Bounds
;
211
Rectangle bounds = element.
Bounds
;
235
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)
321
Debug.Assert(container.Children[0].
Bounds
.Y == margin.Top + container.DisplayRectangle.Y);
322
Debug.Assert(container.Children[0].
Bounds
.X == margin.Left + container.DisplayRectangle.X);
325
Debug.Assert(container.Children[0].
Bounds
.X == container.DisplayRectangle.X + container.DisplayRectangle.Width - container.Children[0].
Bounds
.Width - margin.Right);
326
Debug.Assert(container.Children[0].
Bounds
.Y == margin.Top + container.DisplayRectangle.Y);
329
Debug.Assert(container.Children[0].
Bounds
.Y == container.DisplayRectangle.Y + container.DisplayRectangle.Height - container.Children[0].
Bounds
.Height - margin.Bottom);
330
Debug.Assert(container.Children[0].
Bounds
.X == margin.Left + container.DisplayRectangle.X);
342
Debug.Assert(collection[i].
Bounds
.Y >= container.DisplayRectangle.Y);
343
Debug.Assert(collection[i].
Bounds
.X >= container.DisplayRectangle.X);
346
Debug.Assert(collection[i].
Bounds
.Y >= container.DisplayRectangle.Y);
347
Debug.Assert(collection[i].
Bounds
.X + collection[i].
Bounds
.Width <= container.DisplayRectangle.X + container.DisplayRectangle.Width);
350
Debug.Assert(collection[i].
Bounds
.Y + collection[i].
Bounds
.Height <= container.DisplayRectangle.Y + container.DisplayRectangle.Height);
351
Debug.Assert(collection[i].
Bounds
.X >= container.DisplayRectangle.X);
System\Windows\Forms\Layout\TableLayout.cs (2)
1475
Rectangle elementBounds1 = layoutInfo1.Element.
Bounds
;
1480
Rectangle elementBounds2 = layoutInfo2.Element.
Bounds
;