2 writes to _displayRectangle
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (2)
177_displayRectangle = Rectangle.Empty; 188_displayRectangle = ToolStrip.DisplayRectangle;
26 references to _displayRectangle
System.Windows.Forms (26)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (26)
40Size overflowButtonSize = toolStrip.OverflowButton.AutoSize ? toolStrip.OverflowButton.GetPreferredSize(_displayRectangle.Size) : toolStrip.OverflowButton.Size; 86Size itemSize = item.AutoSize ? item.GetPreferredSize(_displayRectangle.Size) : item.Size; 92if (currentWidth > _displayRectangle.Width - overflowWidth) 94int spaceRecovered = SendNextItemToOverflow((currentWidth + overflowWidth) - _displayRectangle.Width, true); 136Size itemSize = item.AutoSize ? item.GetPreferredSize(_displayRectangle.Size) : item.Size; 141if (currentHeight > _displayRectangle.Height - overflowWidth) 143int spaceRecovered = SendNextItemToOverflow(currentHeight - _displayRectangle.Height, false); 192_noMansLand = _displayRectangle.Location; 213int lastRight = _displayRectangle.Right; 214int lastLeft = _displayRectangle.Left; 287int x = _displayRectangle.Left; 288int y = _displayRectangle.Top; 334itemSize.Height = Math.Max(_displayRectangle.Height - itemMargin.Vertical, 0); 339Rectangle bounds = LayoutUtils.VAlign(item.Size, _displayRectangle, AnchorStyles.None); 358int lastBottom = _displayRectangle.Bottom; 359int lastTop = _displayRectangle.Top; 365Size toolStripPreferredSize = _displayRectangle.Size; 430int x = _displayRectangle.Left + itemMargin.Left; 431int y = _displayRectangle.Top; 472Rectangle bounds = LayoutUtils.HAlign(item.Size, _displayRectangle, AnchorStyles.None); 494Rectangle displayRect = _displayRectangle; 501if ((itemBounds.Right > _displayRectangle.Right) || (itemBounds.Left < _displayRectangle.Left)) 509if ((itemBounds.Bottom > _displayRectangle.Bottom) || (itemBounds.Top < _displayRectangle.Top)) 584Size itemSize = item.AutoSize ? item.GetPreferredSize(_displayRectangle.Size) : item.Size;