1 override of Size
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
464
public override Size
Size
{
5 writes to Size
System.Windows.Forms (5)
winforms\Managed\System\WinForms\ToolStrip.cs (2)
1523
toolStripOverflowButton.
Size
= toolStripOverflowButton.GetPreferredSize(this.DisplayRectangle.Size - this.Padding.Size);
3427
toolStripOverflowButton.
Size
= toolStripOverflowButton.GetPreferredSize(this.DisplayRectangle.Size - this.Padding.Size);
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
479
base.
Size
= value;
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
194
this.
Size
= DefaultSize;
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
664
menuItem.
Size
= this.Size;
44 references to Size
System.Windows.Forms (44)
winforms\Managed\System\WinForms\ToolStrip.cs (7)
2590
return item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.
Size
;
3704
Size itemSize = item.
Size
;
3728
SafeNativeMethods.BitBlt(itemHDC, 0, 0, item.
Size
.Width, item.
Size
.Height, toolStripHDC, item.Bounds.X, item.Bounds.Y, NativeMethods.SRCCOPY);
3736
SafeNativeMethods.BitBlt(toolStripHDC, item.Bounds.X, item.Bounds.Y, item.
Size
.Width, item.
Size
.Height, itemHDC, 0, 0, NativeMethods.SRCCOPY);
4180
item.SetBounds(new Rectangle(location, item.
Size
));
winforms\Managed\System\WinForms\ToolStripControlHost.cs (1)
466
return base.
Size
;
winforms\Managed\System\WinForms\ToolStripDropDownItem.cs (2)
122
Rectangle ownerItemBounds = new Rectangle(TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords),
Size
);
387
Rectangle itemScreenBounds = new Rectangle(this.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords), this.
Size
);
winforms\Managed\System\WinForms\ToolStripHighContrastRenderer.cs (5)
138
Rectangle bounds = new Rectangle(Point.Empty, e.Item.
Size
);
185
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.
Size
), arrowColor, ArrowDirection.Down));
313
Rectangle bounds = new Rectangle(Point.Empty, e.Item.
Size
);
393
Rectangle bounds = new Rectangle(Point.Empty, e.Item.
Size
);
420
Rectangle bounds = new Rectangle(Point.Empty, e.Item.
Size
);
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
4693
Rectangle bounds = new Rectangle(Point.Empty, ownerItem.
Size
);
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
664
menuItem.Size = this.
Size
;
winforms\Managed\System\WinForms\ToolStripProfessionalRenderer.cs (8)
216
Rectangle bounds = new Rectangle(Point.Empty, item.
Size
);
232
RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.
Size
), e.Vertical);
247
Rectangle bounds = new Rectangle(Point.Empty, item.
Size
);
314
Rectangle bounds = new Rectangle(Point.Empty, item.
Size
);
492
Rectangle bounds = new Rectangle(Point.Empty, item.
Size
);
958
Rectangle bounds = new Rectangle(Point.Empty, item.
Size
);
1056
Rectangle overflowBoundsFill = new Rectangle(Point.Empty, e.Item.
Size
);
1371
Rectangle bounds = new Rectangle(Point.Empty, item.
Size
);
winforms\Managed\System\WinForms\ToolStripRenderEventArgs.cs (1)
113
Rectangle itemBounds = new Rectangle(toolStrip.PointToClient(ownerItem.TranslatePoint(Point.Empty, ToolStripPointType.ToolStripItemCoords, ToolStripPointType.ScreenCoords)), ownerItem.
Size
);
winforms\Managed\System\WinForms\ToolStripSplitButton.cs (2)
368
Rectangle dropDownButtonBounds = new Rectangle(Point.Empty, this.
Size
);
644
/// <para>Determines if the <see cref='System.Windows.Forms.ToolStripItem.
Size
'/> property needs to be persisted.</para>
winforms\Managed\System\WinForms\ToolStripSplitStackLayout.cs (8)
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
;
171
Size itemSize = item.AutoSize ? item.GetPreferredSize(displayRectangle.Size) : item.
Size
;
299
itemSize = item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.
Size
;
367
Rectangle bounds = LayoutUtils.VAlign(item.
Size
, displayRectangle, AnchorStyles.None);
435
itemSize = item.AutoSize ? item.GetPreferredSize(Size.Empty) : item.
Size
;
492
Rectangle bounds = LayoutUtils.HAlign(item.
Size
, displayRectangle, AnchorStyles.None);
609
Size itemSize = item.AutoSize ? item.GetPreferredSize(displayRectangle.Size) : item.
Size
;
winforms\Managed\System\WinForms\ToolStripSystemRenderer.cs (8)
341
vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.
Size
));
347
DrawArrow(new ToolStripArrowRenderEventArgs(g, item, new Rectangle(Point.Empty, item.
Size
), arrowColor, ArrowDirection.Down));
374
Rectangle bounds = new Rectangle(Point.Empty, item.
Size
);
392
Rectangle fillRect = new Rectangle(Point.Empty, item.
Size
);
437
RenderSeparatorInternal(e.Graphics, e.Item, new Rectangle(Point.Empty, e.Item.
Size
), e.Vertical);
466
Rectangle bounds = new Rectangle(Point.Empty, splitButton.
Size
);
576
vsRenderer.DrawBackground(g, new Rectangle(Point.Empty, item.
Size
));
579
RenderSmall3DBorderInternal(g, new Rectangle(Point.Empty, item.
Size
), state, (item.RightToLeft == RightToLeft.Yes));