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)
40
Size overflowButtonSize = toolStrip.OverflowButton.AutoSize ? toolStrip.OverflowButton.GetPreferredSize(
_displayRectangle
.Size) : toolStrip.OverflowButton.Size;
86
Size itemSize = item.AutoSize ? item.GetPreferredSize(
_displayRectangle
.Size) : item.Size;
92
if (currentWidth >
_displayRectangle
.Width - overflowWidth)
94
int spaceRecovered = SendNextItemToOverflow((currentWidth + overflowWidth) -
_displayRectangle
.Width, true);
136
Size itemSize = item.AutoSize ? item.GetPreferredSize(
_displayRectangle
.Size) : item.Size;
141
if (currentHeight >
_displayRectangle
.Height - overflowWidth)
143
int spaceRecovered = SendNextItemToOverflow(currentHeight -
_displayRectangle
.Height, false);
192
_noMansLand =
_displayRectangle
.Location;
213
int lastRight =
_displayRectangle
.Right;
214
int lastLeft =
_displayRectangle
.Left;
287
int x =
_displayRectangle
.Left;
288
int y =
_displayRectangle
.Top;
334
itemSize.Height = Math.Max(
_displayRectangle
.Height - itemMargin.Vertical, 0);
339
Rectangle bounds = LayoutUtils.VAlign(item.Size,
_displayRectangle
, AnchorStyles.None);
358
int lastBottom =
_displayRectangle
.Bottom;
359
int lastTop =
_displayRectangle
.Top;
365
Size toolStripPreferredSize =
_displayRectangle
.Size;
430
int x =
_displayRectangle
.Left + itemMargin.Left;
431
int y =
_displayRectangle
.Top;
472
Rectangle bounds = LayoutUtils.HAlign(item.Size,
_displayRectangle
, AnchorStyles.None);
494
Rectangle displayRect =
_displayRectangle
;
501
if ((itemBounds.Right >
_displayRectangle
.Right) || (itemBounds.Left <
_displayRectangle
.Left))
509
if ((itemBounds.Bottom >
_displayRectangle
.Bottom) || (itemBounds.Top <
_displayRectangle
.Top))
584
Size itemSize = item.AutoSize ? item.GetPreferredSize(
_displayRectangle
.Size) : item.Size;