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