19 references to PreferredHeight
System.Windows.Forms (4)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (4)
350cp.Height = PreferredHeight; 355cp.Height = PreferredHeight; 381return new Size(121, PreferredHeight); 1931proposedHeight = PreferredHeight;
System.Windows.Forms.Tests (15)
System\Windows\Forms\ComboBoxTests.cs (15)
40Assert.Equal(control.PreferredHeight, control.Bottom); 41Assert.Equal(new Rectangle(0, 0, 121, control.PreferredHeight), control.Bounds); 48Assert.Equal(new Size(117, control.PreferredHeight - 4), control.ClientSize); 49Assert.Equal(new Rectangle(0, 0, 117, control.PreferredHeight - 4), control.ClientRectangle); 65Assert.Equal(new Size(121, control.PreferredHeight), control.DefaultSize); 68Assert.Equal(new Rectangle(0, 0, 117, control.PreferredHeight - 4), control.DisplayRectangle); 88Assert.Equal(control.PreferredHeight, control.Height); 109Assert.True(control.PreferredHeight > 0); 110Assert.Equal(new Size(121, control.PreferredHeight), control.PreferredSize); 122Assert.Equal(new Size(121, control.PreferredHeight), control.Size); 146Assert.Equal(control.PreferredHeight, createParams.Height); 899int height1 = control.PreferredHeight; 902Assert.Equal(height1, control.PreferredHeight); 905int height2 = control.PreferredHeight; 909Assert.Equal(height1, control.PreferredHeight);