4 implementations of Bounds
System.Windows.Forms (4)
winforms\Managed\System\WinForms\ArrangedElement.cs (1)
40
public Rectangle
Bounds
{
winforms\Managed\System\WinForms\Control.cs (1)
1370
public Rectangle
Bounds
{
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
584
public virtual Rectangle
Bounds
{
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (1)
86
public Rectangle
Bounds
{
33 references to Bounds
System.Windows.Forms (33)
winforms\Managed\System\WinForms\Layout\CommonProperties.cs (3)
160
return element.
Bounds
;
213
Rectangle bounds = element.
Bounds
;
235
Rectangle bounds = element.
Bounds
;
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (26)
193
if (right < left || cachedBounds.Width != element.
Bounds
.Width || cachedBounds.X != element.
Bounds
.X) {
194
if (cachedBounds != element.
Bounds
) {
197
right = left + Math.Max(element.
Bounds
.Width, cachedBounds.Width) + Math.Abs(right);
200
left = left > 0 ? left : element.
Bounds
.Left;
201
right = right > 0 ? right : element.
Bounds
.Right + Math.Abs(right);
207
if (bottom < top || cachedBounds.Height != element.
Bounds
.Height || cachedBounds.Y != element.
Bounds
.Y) {
208
if (cachedBounds != element.
Bounds
) {
211
bottom = top + Math.Max(element.
Bounds
.Height, cachedBounds.Height) + Math.Abs(bottom);
214
top = top > 0 ? top : element.
Bounds
.Top;
215
bottom = bottom > 0 ? bottom : element.
Bounds
.Bottom + Math.Abs(bottom);
270
Debug.Assert(element.
Bounds
== GetCachedBounds(element), "Why do we have cachedBounds for a docked element?");
283
remainingBounds.Y += element.
Bounds
.Height;
284
remainingBounds.Height -= element.
Bounds
.Height;
294
remainingBounds.Height -= element.
Bounds
.Height;
305
remainingBounds.X += element.
Bounds
.Width;
306
remainingBounds.Width -= element.
Bounds
.Width;
316
remainingBounds.Width -= element.
Bounds
.Width;
445
desiredSize = element.
Bounds
.Size;
563
anchorInfo.Left = element.
Bounds
.Left;
564
anchorInfo.Top = element.
Bounds
.Top;
565
anchorInfo.Right = element.
Bounds
.Right;
566
anchorInfo.Bottom = element.
Bounds
.Bottom;
724
return element.
Bounds
;
796
Debug.Assert(specified == BoundsSpecified.None || GetCachedBounds(element) == element.
Bounds
,
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
2083
Rectangle elementBounds1 = layoutInfo1.Element.
Bounds
;
2087
Rectangle elementBounds2 = layoutInfo2.Element.
Bounds
;
winforms\Managed\System\WinForms\ToolStripPanelRow.cs (2)
1288
if (Row.Cells[index].
Bounds
.Contains(locationToDrag)) {
1295
if (Row.Cells[index].
Bounds
.X >= locationToDrag.X) {