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