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)
102
Assert.Equal(Control.DefaultFont.Height + SystemInformation.BorderSize.Height * 4 + 3, control.
PreferredHeight
);
2075
Assert.Equal(expected, control.
PreferredHeight
);
2106
Assert.Equal(expected, control.
PreferredHeight
);
2142
Assert.True(control.
PreferredHeight
>= 0);
2168
Assert.True(control.
PreferredHeight
> 0);
4851
Assert.Equal(control.
PreferredHeight
, result.Height);
4884
Assert.Equal(control.
PreferredHeight
+ 6, result.Height);
6373
listBox.
PreferredHeight
.Should().Be(expectedHeight);
6397
listBox.
PreferredHeight
.Should().Be(expectedHeight);