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