13 references to GetItemHeight
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
584
return
GetItemHeight
(0);
729
height +=
GetItemHeight
(i);
736
height =
GetItemHeight
(0);
System.Windows.Forms.Tests (10)
System\Windows\Forms\ListBoxTests.cs (10)
5151
Assert.Equal(Control.DefaultFont.Height, control.
GetItemHeight
(0));
5174
Assert.Equal(Control.DefaultFont.Height, control.
GetItemHeight
(index));
5196
Assert.True(control.
GetItemHeight
(0) > 0);
5221
Assert.True(control.
GetItemHeight
(index) > 0);
5256
Assert.Equal(expected, control.
GetItemHeight
(index));
5286
Assert.Throws<Win32Exception>(() => control.
GetItemHeight
(0));
5311
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemHeight
(index));
5322
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemHeight
(index));
6368
totalItemHeight += listBox.
GetItemHeight
(i);
6392
totalItemHeight += listBox.
GetItemHeight
(i);