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)
5149
Assert.Equal(Control.DefaultFont.Height, control.
GetItemHeight
(0));
5172
Assert.Equal(Control.DefaultFont.Height, control.
GetItemHeight
(index));
5194
Assert.True(control.
GetItemHeight
(0) > 0);
5219
Assert.True(control.
GetItemHeight
(index) > 0);
5254
Assert.Equal(expected, control.
GetItemHeight
(index));
5284
Assert.Throws<Win32Exception>(() => control.
GetItemHeight
(0));
5309
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemHeight
(index));
5320
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemHeight
(index));
6366
totalItemHeight += listBox.
GetItemHeight
(i);
6390
totalItemHeight += listBox.
GetItemHeight
(i);