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)
757
Assert.Equal(new Size(6, 6), item.
GetPreferredSize
(proposedSize));
760
Assert.Equal(new Size(6, 6), item.
GetPreferredSize
(proposedSize));
808
Assert.Equal(expected, item.
GetPreferredSize
(proposedSize));
811
Assert.Equal(expected, item.
GetPreferredSize
(proposedSize));
838
Assert.Equal(new Size(52, 6), item.
GetPreferredSize
(proposedSize));
841
Assert.Equal(new Size(52, 6), item.
GetPreferredSize
(proposedSize));
856
Assert.Equal(expected, item.
GetPreferredSize
(proposedSize));
859
Assert.Equal(expected, item.
GetPreferredSize
(proposedSize));
907
Assert.Equal(expected, item.
GetPreferredSize
(proposedSize));
910
Assert.Equal(expected, item.
GetPreferredSize
(proposedSize));
WinFormsControlsTest (1)
ToolStripSeparatorPreferredSize.cs (1)
26
_label1.Text = $"Layout: {_toolStrip1.LayoutStyle}, Size: {_toolStripSeparator1.Size}, GetPreferredSize: {_toolStripSeparator1.
GetPreferredSize
(_toolStripSeparator1.Size)}";