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)
35Assert.Equal(control.PreferredHeight, control.Bottom); 36Assert.Equal(new Rectangle(0, 0, 200, control.PreferredHeight), control.Bounds); 50Assert.Equal(new Size(196, control.PreferredHeight - 4), control.ClientSize); 51Assert.Equal(new Rectangle(0, 0, 196, control.PreferredHeight - 4), control.ClientRectangle); 66Assert.Equal(new Size(200, control.PreferredHeight), control.DefaultSize); 68Assert.Equal(new Rectangle(0, 0, 196, control.PreferredHeight - 4), control.DisplayRectangle); 81Assert.Equal(control.PreferredHeight, control.Height); 98Assert.Equal(new Size(200, control.PreferredHeight), control.PreferredSize); 99Assert.Equal(Control.DefaultFont.Height + 7, control.PreferredHeight); 100Assert.Equal(control.PreferredHeight, control.PreferredHeight); 112Assert.Equal(new Size(200, control.PreferredHeight), control.Size); 135Assert.Equal(control.PreferredHeight, createParams.Height);