19 references to PreferredHeight
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
350
cp.Height =
PreferredHeight
;
355
cp.Height =
PreferredHeight
;
381
return new Size(121,
PreferredHeight
);
1931
proposedHeight =
PreferredHeight
;
System.Windows.Forms.Tests (15)
System\Windows\Forms\ComboBoxTests.cs (15)
38
Assert.Equal(control.
PreferredHeight
, control.Bottom);
39
Assert.Equal(new Rectangle(0, 0, 121, control.
PreferredHeight
), control.Bounds);
46
Assert.Equal(new Size(117, control.
PreferredHeight
- 4), control.ClientSize);
47
Assert.Equal(new Rectangle(0, 0, 117, control.
PreferredHeight
- 4), control.ClientRectangle);
63
Assert.Equal(new Size(121, control.
PreferredHeight
), control.DefaultSize);
66
Assert.Equal(new Rectangle(0, 0, 117, control.
PreferredHeight
- 4), control.DisplayRectangle);
86
Assert.Equal(control.
PreferredHeight
, control.Height);
107
Assert.True(control.
PreferredHeight
> 0);
108
Assert.Equal(new Size(121, control.
PreferredHeight
), control.PreferredSize);
120
Assert.Equal(new Size(121, control.
PreferredHeight
), control.Size);
144
Assert.Equal(control.
PreferredHeight
, createParams.Height);
897
int height1 = control.
PreferredHeight
;
900
Assert.Equal(height1, control.
PreferredHeight
);
903
int height2 = control.
PreferredHeight
;
907
Assert.Equal(height1, control.
PreferredHeight
);