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