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)
37
Assert.Equal(control.
PreferredHeight
, control.Bottom);
38
Assert.Equal(new Rectangle(0, 0, 200, control.
PreferredHeight
), control.Bounds);
52
Assert.Equal(new Size(196, control.
PreferredHeight
- 4), control.ClientSize);
53
Assert.Equal(new Rectangle(0, 0, 196, control.
PreferredHeight
- 4), control.ClientRectangle);
68
Assert.Equal(new Size(200, control.
PreferredHeight
), control.DefaultSize);
70
Assert.Equal(new Rectangle(0, 0, 196, control.
PreferredHeight
- 4), control.DisplayRectangle);
83
Assert.Equal(control.
PreferredHeight
, control.Height);
100
Assert.Equal(new Size(200, control.
PreferredHeight
), control.PreferredSize);
101
Assert.Equal(Control.DefaultFont.Height + 7, control.
PreferredHeight
);
102
Assert.Equal(control.
PreferredHeight
, control.
PreferredHeight
);
114
Assert.Equal(new Size(200, control.
PreferredHeight
), control.Size);
137
Assert.Equal(control.
PreferredHeight
, createParams.Height);