13 references to GetItemHeight
System.Windows.Forms (3)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (3)
584return GetItemHeight(0); 729height += GetItemHeight(i); 736height = GetItemHeight(0);
System.Windows.Forms.Tests (10)
System\Windows\Forms\ListBoxTests.cs (10)
5149Assert.Equal(Control.DefaultFont.Height, control.GetItemHeight(0)); 5172Assert.Equal(Control.DefaultFont.Height, control.GetItemHeight(index)); 5194Assert.True(control.GetItemHeight(0) > 0); 5219Assert.True(control.GetItemHeight(index) > 0); 5254Assert.Equal(expected, control.GetItemHeight(index)); 5284Assert.Throws<Win32Exception>(() => control.GetItemHeight(0)); 5309Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemHeight(index)); 5320Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemHeight(index)); 6366totalItemHeight += listBox.GetItemHeight(i); 6390totalItemHeight += listBox.GetItemHeight(i);