22 references to GetItemRectangle
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
62
Rectangle bounds = _owningListBox.
GetItemRectangle
(CurrentIndex);
System.Windows.Forms.Tests (20)
System\Windows\Forms\ListBoxTests.cs (20)
5330
Rectangle rect1 = control.
GetItemRectangle
(0);
5335
Assert.Equal(rect1, control.
GetItemRectangle
(0));
5338
Rectangle rect2 = control.
GetItemRectangle
(1);
5360
Rectangle rect1 = control.
GetItemRectangle
(0);
5365
Assert.Equal(rect1, control.
GetItemRectangle
(0));
5371
Rectangle rect2 = control.
GetItemRectangle
(1);
5399
Assert.Equal(expected, control.
GetItemRectangle
(0));
5428
Assert.Equal(Rectangle.Empty, control.
GetItemRectangle
(0));
5453
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(-1));
5454
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(0));
5455
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(1));
5464
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(-1));
5465
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(1));
5466
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(2));
5473
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(-1));
5474
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(0));
5475
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(1));
5485
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(-1));
5486
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(1));
5487
Assert.Throws<ArgumentOutOfRangeException>("index", () => control.
GetItemRectangle
(2));
System.Windows.Forms.UI.IntegrationTests (1)
ListBoxAccesibleObjectTests.cs (1)
54
var itemBounds = listBox.
GetItemRectangle
(0);