13 references to Bounds
System.Windows.Forms.Tests (11)
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObjectTests.cs (5)
656
int expectedWidth = listViewItem1.SubItems[1].
Bounds
.X - subItem.
Bounds
.X;
660
int expectedHeight = subItem.
Bounds
.Height;
665
Rectangle expectedBounds = new(subItem.
Bounds
.X, subItem.
Bounds
.Y, expectedWidth, expectedHeight)
System\Windows\Forms\ListViewSubItemTests.cs (5)
18
Assert.Equal(Rectangle.Empty, subItem.
Bounds
);
45
Assert.Equal(Rectangle.Empty, subItem.
Bounds
);
71
Assert.Equal(Rectangle.Empty, subItem.
Bounds
);
212
Assert.Equal(subItem.
Bounds
, subItem.
Bounds
);
System\Windows\Forms\ListViewTests.cs (1)
5447
Point subItemLocation = listView.Items[0].SubItems[subItemIndex].
Bounds
.Location + new Size(1, 1);
System.Windows.Forms.UI.IntegrationTests (2)
ListViewTests.cs (2)
494
Point listViewCenter = GetCenter(listView.RectangleToScreen(listView.Items[0].SubItems[1].
Bounds
));
500
listViewCenter = GetCenter(listView.RectangleToScreen(listView.Items[2].SubItems[1].
Bounds
));