21 references to GetItemRect
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
312return _listView.GetItemRect(Index);
System.Windows.Forms.Tests (20)
System\Windows\Forms\ListViewTests.cs (20)
4089Rectangle rect1 = control.GetItemRect(0); 4094Assert.Equal(rect1, control.GetItemRect(0)); 4097Rectangle rect2 = control.GetItemRect(1); 4120Rectangle rect1 = control.GetItemRect(0); 4125Assert.Equal(rect1, control.GetItemRect(0)); 4131Rectangle rect2 = control.GetItemRect(1); 4159Assert.Equal(expected, control.GetItemRect(0)); 4189Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(0)); 4214Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(-1)); 4215Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(0)); 4216Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(1)); 4226Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(-1)); 4227Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(1)); 4228Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(2)); 4235Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(-1)); 4236Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(0)); 4237Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(1)); 4248Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(-1)); 4249Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(1)); 4250Assert.Throws<ArgumentOutOfRangeException>("index", () => control.GetItemRect(2));