Base:
method
GetPreferredSize
System.Windows.Forms.ToolStripItem.GetPreferredSize(System.Drawing.Size)
3 overrides of GetPreferredSize
System.Windows.Forms (3)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
322
public override Size
GetPreferredSize
(Size constrainingSize)
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
123
public override Size
GetPreferredSize
(Size constrainingSize)
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.cs (1)
89
public override Size
GetPreferredSize
(Size constrainingSize)
7 references to GetPreferredSize
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.cs (1)
324
Size preferredSize = base.
GetPreferredSize
(constrainingSize);
System.Windows.Forms.Tests (6)
System\Windows\Forms\ToolStripControlHostTests.cs (6)
2726
Assert.Equal(new Size(10, 20), item.
GetPreferredSize
(proposedSize));
2729
Assert.Equal(new Size(10, 20), item.
GetPreferredSize
(proposedSize));
2744
Assert.Equal(new Size(14, 26), item.
GetPreferredSize
(proposedSize));
2747
Assert.Equal(new Size(14, 26), item.
GetPreferredSize
(proposedSize));
2758
Assert.Throws<ObjectDisposedException>(() => item.
GetPreferredSize
(proposedSize));
2761
Assert.Throws<ObjectDisposedException>(() => item.
GetPreferredSize
(proposedSize));