Implemented interface member:
property
Bounds
System.Windows.Forms.Layout.IArrangedElement.Bounds
103 references to Bounds
System.Windows.Forms (103)
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (2)
1734
Rectangle rect = new Rectangle (0, 0 , item.
Bounds
.Width - 1, item.
Bounds
.Height - 1);
winforms\Managed\System\WinForms\StatusStrip.cs (5)
391
if (overflow || (SizingGrip && item.
Bounds
.IntersectsWith(SizeGripBounds))) {
397
else if (lastItem != null && (lastItemBounds.IntersectsWith(item.
Bounds
))) {
402
else if (item.
Bounds
.Width == 1) {
414
if (item.
Bounds
.Location != noMansLand){
417
lastItemBounds = lastItem.
Bounds
;
winforms\Managed\System\WinForms\ToolStrip.cs (44)
994
return (GripStyle == ToolStripGripStyle.Visible) ? Grip.
Bounds
: Rectangle.Empty;
1989
Rectangle regionRect = (item == null) ? Rectangle.Empty : item.
Bounds
;
2019
region.Union(DisplayedItems[i].
Bounds
);
2344
Point midPointOfCurrent = new Point(selectedItem.
Bounds
.X + selectedItem.Width / 2,
2345
selectedItem.
Bounds
.Y + selectedItem.Height / 2);
2354
if (!down && otherItem.
Bounds
.Bottom > selectedItem.
Bounds
.Top) {
2358
else if (down && otherItem.
Bounds
.Top < selectedItem.
Bounds
.Bottom) {
2365
Point otherItemMidLocation = new Point(otherItem.
Bounds
.X + otherItem.Width/2, (down)? otherItem.
Bounds
.Top : otherItem.
Bounds
.Bottom);
2425
else if ((!down && tanWinner.
Bounds
.Bottom <= hypotenuseWinner.
Bounds
.Top)
2426
||(down && tanWinner.
Bounds
.Top > hypotenuseWinner.
Bounds
.Bottom)) {
2515
maxSize.Width += overflowItemMargin.Horizontal + overflowItem.
Bounds
.Width;
2569
maxSize.Height += overflowItemMargin.Vertical + overflowItem.
Bounds
.Height;
2772
Invalidate(item.
Bounds
);
3686
Rectangle bounds = item.
Bounds
;
3728
SafeNativeMethods.BitBlt(itemHDC, 0, 0, item.Size.Width, item.Size.Height, toolStripHDC, item.
Bounds
.X, item.
Bounds
.Y, NativeMethods.SRCCOPY);
3736
SafeNativeMethods.BitBlt(toolStripHDC, item.
Bounds
.X, item.
Bounds
.Y, item.Size.Width, item.Size.Height, itemHDC, 0, 0, NativeMethods.SRCCOPY);
4031
bounds = lastMouseActiveItem.
Bounds
;
4045
bounds = DisplayedItems[i].
Bounds
;
4156
Point newLocation = item.
Bounds
.Location;
4311
if (Grip.
Bounds
!=gripRectangle) {
4331
size = LayoutUtils.UnionSizes(size, toolStripOverflowButton.
Bounds
.Size);
4334
size = LayoutUtils.UnionSizes(size, toolStripGrip.
Bounds
.Size);
4396
biggestItemSize = LayoutUtils.UnionSizes(biggestItemSize, item.
Bounds
.Size);
4444
bool intersects = item.
Bounds
.IntersectsWith(clientBounds);
4446
bool verticallyContained = clientBounds.Contains(clientBounds.X, item.
Bounds
.Top) &&
4447
clientBounds.Contains(clientBounds.X, item.
Bounds
.Bottom);
4454
biggestItemSize = LayoutUtils.UnionSizes(biggestItemSize, item.
Bounds
.Size);
4463
Debug.WriteLineIf(LayoutDebugSwitch.TraceVerbose, item.ToString() + Items[j].
Bounds
);
5419
RelativeLocation relativeLocation = ComparePositions(item.
Bounds
, ownerClientAreaRelativeDropPoint);
5474
RelativeLocation relativeLocation = ComparePositions(item.
Bounds
, ownerClientAreaRelativeDropPoint);
5482
insertionRect = new Rectangle(owner.Margin.Left, item.
Bounds
.Top, owner.Width - (owner.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth);
5485
insertionRect = new Rectangle(owner.Margin.Left, item.
Bounds
.Bottom, owner.Width - (owner.Margin.Horizontal) -1, ToolStrip.insertionBeamWidth);
5488
insertionRect = new Rectangle(item.
Bounds
.Right, owner.Margin.Top, ToolStrip.insertionBeamWidth, owner.Height- (owner.Margin.Vertical)-1);
5491
insertionRect = new Rectangle(item.
Bounds
.Left, owner.Margin.Top, ToolStrip.insertionBeamWidth, owner.Height - (owner.Margin.Vertical) -1);
5510
Rectangle bounds = owner.DisplayedItems[i].
Bounds
;
5513
Debug.WriteLineIf(ToolStrip.DropTargetDebug.TraceVerbose, "MATCH " + owner.DisplayedItems[i].Text + " Bounds: " + owner.DisplayedItems[i].
Bounds
.ToString());
winforms\Managed\System\WinForms\ToolStripControlHost.cs (4)
57
Rectangle bounds = this.
Bounds
;
812
Size size = LayoutUtils.DeflateRect(this.
Bounds
, this.Padding).Size;
813
Rectangle bounds = LayoutUtils.Align(size, this.
Bounds
, ControlAlign);
821
bounds = LayoutUtils.Align(control.Size, this.
Bounds
, ControlAlign);
winforms\Managed\System\WinForms\ToolStripDropDown.cs (1)
1454
if (OwnerItem.
Bounds
.Contains(WindowsFormsUtils.TranslatePoint(mea.Location, this, OwnerToolStrip))) {
winforms\Managed\System\WinForms\ToolStripDropDownButton.cs (3)
285
dropDownArrowRect = new Rectangle(scaledDropDownArrowPadding.Left,0, dropDownArrowSize.Width, ownerItem.
Bounds
.Height);
289
dropDownArrowRect = new Rectangle(options.client.Right,0, dropDownArrowSize.Width, ownerItem.
Bounds
.Height);
300
dropDownArrowRect = new Rectangle(0,options.client.Bottom + scaledDropDownArrowPadding.Top, ownerItem.
Bounds
.Width-1, dropDownArrowSize.Height);
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (1)
103
get { return this.
Bounds
; }
winforms\Managed\System\WinForms\ToolStripDropDownMenu.cs (28)
378
maxNonMenuItemSize.Height = Math.Max(item.
Bounds
.Height, maxNonMenuItemSize.Height);
379
maxNonMenuItemSize.Width = Math.Max(item.
Bounds
.Width, maxNonMenuItemSize.Width);
520
if (!displayRect.Contains(displayRect.X, nextItem.
Bounds
.Top)
521
|| !displayRect.Contains(displayRect.X, nextItem.
Bounds
.Bottom)) {
524
if (displayRect.Y > nextItem.
Bounds
.Top) {
525
delta = nextItem.
Bounds
.Top - displayRect.Y;
528
delta = nextItem.
Bounds
.Bottom - (displayRect.Y + displayRect.Height);
533
if ( (this.Items[index].Visible && displayRect.Contains(displayRect.X, this.Items[index].
Bounds
.Top - delta))
543
if (displayRect.Contains(displayRect.X, this.Items[index].
Bounds
.Bottom - delta)) {
545
delta += (this.Items[index].
Bounds
.Bottom - delta) - displayRect.Top;
629
int delta = this.Items[0].
Bounds
.Top - this.DisplayRectangle.Top;
659
int alreadyScrolled = displayRectangle.Top - this.Items[0].
Bounds
.Top;
667
Rectangle adjustedLastItemBounds = this.Items[this.Items.Count - 1].
Bounds
;
677
deltaToScroll += this.Items[i + 1].
Bounds
.Top - this.Items[i].
Bounds
.Top;
680
deltaToScroll += this.Items[i].
Bounds
.Height;
688
Rectangle adjustedLastItemBounds = this.Items[0].
Bounds
;
698
deltaToScroll -= this.Items[i].
Bounds
.Top - this.Items[i - 1].
Bounds
.Top;
701
deltaToScroll -= this.Items[i].
Bounds
.Height;
707
this.scrollAmount = this.DisplayRectangle.Top - this.Items[0].
Bounds
.Top;
739
delta = itemTop.
Bounds
.Top - itemBottom.
Bounds
.Top;
751
delta = itemBottom.
Bounds
.Top - itemTop.
Bounds
.Top;
814
if (this.indexOfFirstDisplayedItem == -1 && displayRectangle.Contains(displayRectangle.X, item.
Bounds
.Top)) {
818
minY = Math.Min(minY, item.
Bounds
.Top);
819
maxY = Math.Max(maxY, item.
Bounds
.Bottom);
winforms\Managed\System\WinForms\ToolStripItem.cs (10)
1116
return
Bounds
.Height;
1119
Rectangle currentBounds = this.
Bounds
;
1155
return this.
Bounds
;
2187
return
Bounds
.Size;
2190
Rectangle currentBounds =
Bounds
;
2446
return
Bounds
.Width;
2449
Rectangle currentBounds = this.
Bounds
;
2737
ParentInternal.Invalidate(this.
Bounds
, true);
3857
Point currentToolStripItemLocation =
Bounds
.Location;
4403
Rectangle bounds = Owner.
Bounds
;
winforms\Managed\System\WinForms\ToolStripOverflow.cs (1)
156
biggestItemSize = LayoutUtils.UnionSizes(biggestItemSize, item.
Bounds
.Size);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (4)
98
return SplitButtonButton.
Bounds
;
557
if ((e.Button == MouseButtons.Left) && this.SplitButtonButton.
Bounds
.Contains(clickPoint)) {
771
imageRect.Offset(owner.SplitButtonButton.
Bounds
.Location);
780
textRect.Offset(owner.SplitButtonButton.
Bounds
.Location);