Base:
method
GetPreferredSize
System.Windows.Forms.ToolStripItem.GetPreferredSize(System.Drawing.Size)
3 references to GetPreferredSize
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1363
_toolStripOverflowButton.Size = _toolStripOverflowButton.
GetPreferredSize
(DisplayRectangle.Size - Padding.Size);
3259
_toolStripOverflowButton!.Size = _toolStripOverflowButton.
GetPreferredSize
(DisplayRectangle.Size - Padding.Size);
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (1)
40
Size overflowButtonSize = toolStrip.OverflowButton.AutoSize ? toolStrip.OverflowButton.
GetPreferredSize
(_displayRectangle.Size) : toolStrip.OverflowButton.Size;