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)
38Assert.Equal(control.PreferredHeight, control.Bottom); 39Assert.Equal(new Rectangle(0, 0, 121, control.PreferredHeight), control.Bounds); 46Assert.Equal(new Size(117, control.PreferredHeight - 4), control.ClientSize); 47Assert.Equal(new Rectangle(0, 0, 117, control.PreferredHeight - 4), control.ClientRectangle); 63Assert.Equal(new Size(121, control.PreferredHeight), control.DefaultSize); 66Assert.Equal(new Rectangle(0, 0, 117, control.PreferredHeight - 4), control.DisplayRectangle); 86Assert.Equal(control.PreferredHeight, control.Height); 107Assert.True(control.PreferredHeight > 0); 108Assert.Equal(new Size(121, control.PreferredHeight), control.PreferredSize); 120Assert.Equal(new Size(121, control.PreferredHeight), control.Size); 144Assert.Equal(control.PreferredHeight, createParams.Height); 897int height1 = control.PreferredHeight; 900Assert.Equal(height1, control.PreferredHeight); 903int height2 = control.PreferredHeight; 907Assert.Equal(height1, control.PreferredHeight);