1 write to
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (1)
92this[index] = value is ListViewItem item
74 references to
System.Windows.Forms (64)
System\Windows\Forms\Controls\ListView\ListView.CheckedIndexCollection.cs (3)
57if (_owner.Items[i].Checked) 81ListViewItem item = _owner.Items[i]; 145if (_owner.Items[checkedIndex].Checked)
System\Windows\Forms\Controls\ListView\ListView.CheckedListViewItemCollection.cs (3)
52if (_owner.Items[i].Checked) 54items[index++] = _owner.Items[i]; 75return _owner.Items[itemIndex];
System\Windows\Forms\Controls\ListView\ListView.cs (34)
816return Items[displayIndex]; 1723return _topIndex >= 0 && _topIndex < Items.Count ? Items[_topIndex] : null; 1887ListViewItem lvItem = Items[topIndex]; 2520if (Items[i].ImageIndexer.ActualIndex > -1) 2707if (nmcd->iSubItem < Items[itemIndex].SubItems.Count) 2713if (nmcd->iSubItem == 0 && Items[itemIndex].SubItems.Count > 1) 2727Items[itemIndex], 2728Items[itemIndex].SubItems[nmcd->iSubItem], 3281return sviEvent.Index != -1 ? Items[sviEvent.Index] : null; 3312return Items[index]; 3320ListViewItem listViewItem = Items[i]; 3482li = Items[displayIndex]; 3641ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(subItemIndex, Items[itemIndex].SubItems.Count); 3715ListViewItem? item = (iItem == -1) ? null : Items[iItem]; 3943ListViewItem item = Items[i]; 3957ListViewItem item = Items[i]; 4648if (Items[i].Checked) 4650UpdateSavedCheckedItems(Items[i], true /*addItem*/); 4665Items[i].UpdateStateFromListView(i, true); 4851ListViewItem firstSelectedItem = Items[SelectedIndices[0]]; 4920int subItemCount = Items[i].SubItems.Count; 4923SetItemText(i, j, Items[i].SubItems[j].Text, ref item); 4995Rectangle rectInvalid = Items[startIndex].Bounds; 4998rectInvalid = Rectangle.Union(rectInvalid, Items[index].Bounds); 5003rectInvalid = Rectangle.Union(rectInvalid, Items[startIndex - 1].Bounds); 5014rectInvalid = Rectangle.Union(rectInvalid, Items[endIndex + 1].Bounds); 5830ListViewItem clickedItem = Items[displayIndex]; 5871ListViewItem clickedItem = Items[displayIndex]; 6502ListViewItem item = Items[nmlv->iItem]; 6517ListViewItem item = Items[nmlv->iItem]; 6558ItemCheckedEventArgs e = new(Items[nmlv->iItem]); 6574ListViewItem item = Items[indexItem]; 6614ListViewItemSelectionChangedEventArgs lvisce = new(Items[nmlv->iItem], 6810ListViewItem lvi = Items[infoTip->iItem];
System\Windows\Forms\Controls\ListView\ListView.ListViewAccessibleObject.cs (2)
103return index < owningListView.Items.Count ? owningListView.Items[index].AccessibilityObject : null; 252selectedItemProviders[i] = owningListView.Items[owningListView.SelectedIndices[i]].AccessibilityObject;
System\Windows\Forms\Controls\ListView\ListView.ListViewItemCollection.cs (10)
88return this[index]; 115return this[index]; 283if (WindowsFormsUtils.SafeCompareStrings(listViewItems[i].Name, key, ignoreCase: true)) 285foundItems.Add(listViewItems[i]); 292for (int j = 1; j < listViewItems[i].SubItems.Count; j++) 294if (WindowsFormsUtils.SafeCompareStrings(listViewItems[i].SubItems[j].Name, key, ignoreCase: true)) 296foundItems.Add(listViewItems[i]); 320if (this[index] == item) 346if (WindowsFormsUtils.SafeCompareStrings(this[_lastAccessedIndex].Name, key, /* ignoreCase = */ true)) 355if (WindowsFormsUtils.SafeCompareStrings(this[i].Name, key, /* ignoreCase = */ true))
System\Windows\Forms\Controls\ListView\ListView.ListViewNativeItemCollection.cs (2)
234ListViewItem item = _owner.Items[i]; 283ListViewItem item = _owner.Items[i];
System\Windows\Forms\Controls\ListView\ListView.SelectedIndexCollection.cs (3)
175return _owner.Items[selectedIndex].Selected; 276_owner.Items[itemIndex].Selected = true; 331_owner.Items[itemIndex].Selected = false;
System\Windows\Forms\Controls\ListView\ListView.SelectedListViewItemCollection.cs (2)
49lvitems[i] = _owner.Items[fidx]; 139return _owner.Items[fidx];
System\Windows\Forms\Controls\ListView\ListViewGroup.cs (1)
471info.AddValue($"Item{i}", Items[i], typeof(ListViewItem));
System\Windows\Forms\Controls\ListView\ListViewGroupCollection.cs (1)
177ListViewItem item = group.Items[i];
System\Windows\Forms\Controls\ListView\ListViewItem.IKeyboardToolTip.cs (3)
50neighboringRectangles.Add(_listView.Items[Index - 1].AccessibilityObject.Bounds); 55neighboringRectangles.Add(_listView.Items[Index + 1].AccessibilityObject.Bounds); 89ListViewItem item = _listView.Items[index];
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\MaskDesignerDialog.cs (2)
468_listViewCannedMasks.Items[maskDexIndex].Selected = true; 469_listViewCannedMasks.FocusedItem = _listViewCannedMasks.Items[maskDexIndex];
System.Windows.Forms.Tests (7)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
1229((ListViewItemDetailsAccessibleObject)listView.Items[itemIndex].AccessibilityObject).GetDetailsSubItemOrFake(subItemIndex);
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemAccessibleObjectTests.cs (4)
161? listView.Items[index].Group is not null 967AccessibleObject GetAccessibleObject(int index) => listView.Groups[0].Items[index].AccessibilityObject; 1002AccessibleObject GetAccessibleObject(int index) => listView.Groups[0].Items[index].AccessibilityObject; 1025AccessibleObject GetAccessibleObject(int index) => listView.Groups[0].Items[index].AccessibilityObject;
System\Windows\Forms\ListViewTests.cs (2)
5696ListViewItem item = listView.Items[i]; 5769ListViewItem item = listView.Items[i];
System.Windows.Forms.UI.IntegrationTests (1)
ListViewTests.cs (1)
129AccessibleObject? expectedAccessibleObject = listView.Items[itemIndex].SubItems[subItemIndex].AccessibilityObject;