Base:
method
GetPreferredSize
System.Windows.Forms.ToolStripItem.GetPreferredSize(System.Drawing.Size)
11 references to GetPreferredSize
System.Windows.Forms.Tests (10)
System\Windows\Forms\ToolStripSeparatorTests.cs (10)
757Assert.Equal(new Size(6, 6), item.GetPreferredSize(proposedSize)); 760Assert.Equal(new Size(6, 6), item.GetPreferredSize(proposedSize)); 808Assert.Equal(expected, item.GetPreferredSize(proposedSize)); 811Assert.Equal(expected, item.GetPreferredSize(proposedSize)); 838Assert.Equal(new Size(52, 6), item.GetPreferredSize(proposedSize)); 841Assert.Equal(new Size(52, 6), item.GetPreferredSize(proposedSize)); 856Assert.Equal(expected, item.GetPreferredSize(proposedSize)); 859Assert.Equal(expected, item.GetPreferredSize(proposedSize)); 907Assert.Equal(expected, item.GetPreferredSize(proposedSize)); 910Assert.Equal(expected, item.GetPreferredSize(proposedSize));
WinFormsControlsTest (1)
ToolStripSeparatorPreferredSize.cs (1)
26_label1.Text = $"Layout: {_toolStrip1.LayoutStyle}, Size: {_toolStripSeparator1.Size}, GetPreferredSize: {_toolStripSeparator1.GetPreferredSize(_toolStripSeparator1.Size)}";