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)
40
Assert.Equal(control.
PreferredHeight
, control.Bottom);
41
Assert.Equal(new Rectangle(0, 0, 121, control.
PreferredHeight
), control.Bounds);
48
Assert.Equal(new Size(117, control.
PreferredHeight
- 4), control.ClientSize);
49
Assert.Equal(new Rectangle(0, 0, 117, control.
PreferredHeight
- 4), control.ClientRectangle);
65
Assert.Equal(new Size(121, control.
PreferredHeight
), control.DefaultSize);
68
Assert.Equal(new Rectangle(0, 0, 117, control.
PreferredHeight
- 4), control.DisplayRectangle);
88
Assert.Equal(control.
PreferredHeight
, control.Height);
109
Assert.True(control.
PreferredHeight
> 0);
110
Assert.Equal(new Size(121, control.
PreferredHeight
), control.PreferredSize);
122
Assert.Equal(new Size(121, control.
PreferredHeight
), control.Size);
146
Assert.Equal(control.
PreferredHeight
, createParams.Height);
899
int height1 = control.
PreferredHeight
;
902
Assert.Equal(height1, control.
PreferredHeight
);
905
int height2 = control.
PreferredHeight
;
909
Assert.Equal(height1, control.
PreferredHeight
);