2 writes to displayRectangle
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (2)
214displayRectangle = Rectangle.Empty; 226this.displayRectangle = toolStrip.DisplayRectangle;
26 references to displayRectangle
System.Windows.Forms (26)
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (26)
61Size overflowButtonSize = toolStrip.OverflowButton.AutoSize ? toolStrip.OverflowButton.GetPreferredSize(displayRectangle.Size) : toolStrip.OverflowButton.Size; 121Size itemSize = item.AutoSize ? item.GetPreferredSize(this.displayRectangle.Size) : item.Size; 127if (currentWidth > displayRectangle.Width - overflowWidth) { 131int spaceRecovered = SendNextItemToOverflow((currentWidth + overflowWidth) - displayRectangle.Width, true); 171Size itemSize = item.AutoSize ? item.GetPreferredSize(displayRectangle.Size) : item.Size; 178if (currentHeight > displayRectangle.Height - overflowWidth) { 182int spaceRecovered = SendNextItemToOverflow(currentHeight - displayRectangle.Height, false); 230noMansLand = displayRectangle.Location; 250int lastRight = displayRectangle.Right;// - toolStrip.Padding.Right; 251int lastLeft = displayRectangle.Left;// + toolStrip.Padding.Left; 318int x = displayRectangle.Left; 319int y = displayRectangle.Top; 363itemSize.Height = Math.Max(displayRectangle.Height - itemMargin.Vertical, 0); 367Rectangle bounds = LayoutUtils.VAlign(item.Size, displayRectangle, AnchorStyles.None); 390int lastBottom = displayRectangle.Bottom; 391int lastTop = displayRectangle.Top; 397Size toolStripPreferredSize = displayRectangle.Size; 455int x = displayRectangle.Left + itemMargin.Left; 456int y = displayRectangle.Top; 492Rectangle bounds = LayoutUtils.HAlign(item.Size, displayRectangle, AnchorStyles.None); 517Rectangle displayRect = displayRectangle; 522if ((itemBounds.Right > displayRectangle.Right) 523|| (itemBounds.Left < displayRectangle.Left)) { 533if ((itemBounds.Bottom > displayRectangle.Bottom) 534|| (itemBounds.Top < displayRectangle.Top)) { 609Size itemSize = item.AutoSize ? item.GetPreferredSize(displayRectangle.Size) : item.Size;