11 references to ItemBoundsPortion
System.Windows.Forms (6)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
3297Rectangle iconBounds = GetItemRect(lvi.Index, ItemBoundsPortion.Icon); 3638public Rectangle GetItemRect(int index, ItemBoundsPortion portion) 3704internal Rectangle GetSubItemRect(int itemIndex, int subItemIndex, ItemBoundsPortion portion)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (1)
966public Rectangle GetBounds(ItemBoundsPortion portion)
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (1)
95Rectangle itemBounds = _listView.GetItemRect(index, ItemBoundsPortion.Label);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemImageAccessibleObject.cs (1)
54internal Rectangle GetImageRectangle() => _owningItem.ListView!.GetItemRect(_owningItem.Index, ItemBoundsPortion.Icon);
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (2)
1159listView.PointToScreen(listView.GetItemRect(0, ItemBoundsPortion.Label).Location); 1207listView.PointToScreen(listView.GetSubItemRect(itemIndex, subItemIndex, ItemBoundsPortion.Label).Location);
System\Windows\Forms\ListViewItem.IKeyboardToolTipTests.cs (2)
185: listView.GetItemRect(0, ItemBoundsPortion.Label).Width; 201: listView.GetItemRect(0, ItemBoundsPortion.Label).Width;
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
300listView.PointToScreen(listView.GetSubItemRect(itemIndex, subItemIndex, ItemBoundsPortion.Label).Location);