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