Base:
method
GetPreferredSize
System.Windows.Forms.Control.GetPreferredSize(System.Drawing.Size)
1 override of GetPreferredSize
System.Windows.Forms.Design (1)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
59
public override Size
GetPreferredSize
(Size proposedSize)
40 references to GetPreferredSize
System.Windows.Forms.Design (2)
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
61
Size preferredSize = base.
GetPreferredSize
(proposedSize);
System\ComponentModel\Design\DesignerActionPanel.CheckBoxPropertyLine.cs (1)
36
Size checkBoxPreferredSize = _checkBox.
GetPreferredSize
(new Size(int.MaxValue, int.MaxValue));
System.Windows.Forms.Tests (38)
System\Windows\Forms\ButtonBaseTests.cs (4)
5018
Assert.Throws<NullReferenceException>(() => control.
GetPreferredSize
(proposedSize));
5022
Assert.Throws<NullReferenceException>(() => control.
GetPreferredSize
(proposedSize));
5045
Assert.Throws<NullReferenceException>(() => control.
GetPreferredSize
(proposedSize));
5052
Assert.Throws<NullReferenceException>(() => control.
GetPreferredSize
(proposedSize));
System\Windows\Forms\ButtonTests.cs (34)
596
Assert.Equal(new Size(75, 24), control.
GetPreferredSize
(Size.Empty));
601
Assert.Equal(new Size(75, 24), control.
GetPreferredSize
(Size.Empty));
697
Assert.Equal(oldSize + new Size(14, 9), control.
GetPreferredSize
(Size.Empty));
702
Assert.Equal(newSize + new Size(14, 9), control.
GetPreferredSize
(Size.Empty));
952
Assert.Equal(oldSize + new Size(14, 9), control.
GetPreferredSize
(Size.Empty));
957
Assert.Equal(newSize + new Size(14, 9), control.
GetPreferredSize
(Size.Empty));
1204
Size size = control.
GetPreferredSize
(proposedSize);
1209
size = control.
GetPreferredSize
(proposedSize);
1254
Size size = control.
GetPreferredSize
(proposedSize);
1259
size = control.
GetPreferredSize
(proposedSize);
1305
Size size = control.
GetPreferredSize
(proposedSize);
1310
size = control.
GetPreferredSize
(proposedSize);
1340
Size size = control.
GetPreferredSize
(proposedSize);
1345
size = control.
GetPreferredSize
(proposedSize);
1364
Size size = control.
GetPreferredSize
(proposedSize);
1369
size = control.
GetPreferredSize
(proposedSize);
1442
Size size = control.
GetPreferredSize
(proposedSize);
1447
size = control.
GetPreferredSize
(proposedSize);
1521
Size size = control.
GetPreferredSize
(proposedSize);
1526
size = control.
GetPreferredSize
(proposedSize);
1601
Size size = control.
GetPreferredSize
(proposedSize);
1606
size = control.
GetPreferredSize
(proposedSize);
1636
Size size = control.
GetPreferredSize
(proposedSize);
1641
size = control.
GetPreferredSize
(proposedSize);
1660
Size size = control.
GetPreferredSize
(proposedSize);
1665
size = control.
GetPreferredSize
(proposedSize);
1684
Size size = control.
GetPreferredSize
(proposedSize);
1689
size = control.
GetPreferredSize
(proposedSize);
1708
Size size = control.
GetPreferredSize
(proposedSize);
1713
size = control.
GetPreferredSize
(proposedSize);
1732
Size size = control.
GetPreferredSize
(proposedSize);
1737
size = control.
GetPreferredSize
(proposedSize);
1756
Size size = control.
GetPreferredSize
(proposedSize);
1761
size = control.
GetPreferredSize
(proposedSize);