17 references to PreferredHeight
System.Windows.Forms (4)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (4)
452
protected override Size DefaultSize => new(200,
PreferredHeight
);
1017
return base.ApplyBoundsConstraints(suggestedX, suggestedY, proposedWidth,
PreferredHeight
);
1022
int height =
PreferredHeight
;
1181
Height =
PreferredHeight
;
System.Windows.Forms.Tests (13)
System\Windows\Forms\DateTimePickerTests.cs (13)
35
Assert.Equal(control.
PreferredHeight
, control.Bottom);
36
Assert.Equal(new Rectangle(0, 0, 200, control.
PreferredHeight
), control.Bounds);
50
Assert.Equal(new Size(196, control.
PreferredHeight
- 4), control.ClientSize);
51
Assert.Equal(new Rectangle(0, 0, 196, control.
PreferredHeight
- 4), control.ClientRectangle);
66
Assert.Equal(new Size(200, control.
PreferredHeight
), control.DefaultSize);
68
Assert.Equal(new Rectangle(0, 0, 196, control.
PreferredHeight
- 4), control.DisplayRectangle);
81
Assert.Equal(control.
PreferredHeight
, control.Height);
98
Assert.Equal(new Size(200, control.
PreferredHeight
), control.PreferredSize);
99
Assert.Equal(Control.DefaultFont.Height + 7, control.
PreferredHeight
);
100
Assert.Equal(control.
PreferredHeight
, control.
PreferredHeight
);
112
Assert.Equal(new Size(200, control.
PreferredHeight
), control.Size);
135
Assert.Equal(control.
PreferredHeight
, createParams.Height);