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