17 references to PreferredHeight
System.Windows.Forms (4)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (4)
452protected override Size DefaultSize => new(200, PreferredHeight); 1017return base.ApplyBoundsConstraints(suggestedX, suggestedY, proposedWidth, PreferredHeight); 1022int height = PreferredHeight; 1181Height = PreferredHeight;
System.Windows.Forms.Tests (13)
System\Windows\Forms\DateTimePickerTests.cs (13)
37Assert.Equal(control.PreferredHeight, control.Bottom); 38Assert.Equal(new Rectangle(0, 0, 200, control.PreferredHeight), control.Bounds); 52Assert.Equal(new Size(196, control.PreferredHeight - 4), control.ClientSize); 53Assert.Equal(new Rectangle(0, 0, 196, control.PreferredHeight - 4), control.ClientRectangle); 68Assert.Equal(new Size(200, control.PreferredHeight), control.DefaultSize); 70Assert.Equal(new Rectangle(0, 0, 196, control.PreferredHeight - 4), control.DisplayRectangle); 83Assert.Equal(control.PreferredHeight, control.Height); 100Assert.Equal(new Size(200, control.PreferredHeight), control.PreferredSize); 101Assert.Equal(Control.DefaultFont.Height + 7, control.PreferredHeight); 102Assert.Equal(control.PreferredHeight, control.PreferredHeight); 114Assert.Equal(new Size(200, control.PreferredHeight), control.Size); 137Assert.Equal(control.PreferredHeight, createParams.Height);