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