12 references to PreferredHeight
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
759int height = PreferredHeight;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
3724DropDownListBox.Height = Math.Max(tm.tmHeight + 2, Math.Min(_maxListBoxHeight, DropDownListBox.PreferredHeight));
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
105listBox.Height = Math.Max(tm.tmHeight + 2, Math.Min(ListBoxMaximumHeight, listBox.PreferredHeight));
System.Windows.Forms.Tests (9)
System\Windows\Forms\ListBoxTests.cs (9)
100Assert.Equal(Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3, control.PreferredHeight); 2073Assert.Equal(expected, control.PreferredHeight); 2104Assert.Equal(expected, control.PreferredHeight); 2140Assert.True(control.PreferredHeight >= 0); 2166Assert.True(control.PreferredHeight > 0); 4849Assert.Equal(control.PreferredHeight, result.Height); 4882Assert.Equal(control.PreferredHeight + 6, result.Height); 6371listBox.PreferredHeight.Should().Be(expectedHeight); 6395listBox.PreferredHeight.Should().Be(expectedHeight);