2 writes to _subItems
System.Windows.Forms (2)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (2)
187
_subItems
= new List<ListViewSubItem>(items.Length);
779
_subItems
= [new ListViewSubItem(this, string.Empty)];
34 references to _subItems
System.Windows.Forms (34)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (16)
96
_subItems
.EnsureCapacity(items.Length);
99
_subItems
.Add(new ListViewSubItem(this, items[i]));
128
_subItems
.Add(subItems[i]);
190
_subItems
.Add(new ListViewSubItem(this, items[i]));
219
_subItems
.Add(subItems[i]);
295
return
_subItems
[0].BackColor;
403
return
_subItems
[0].Font;
426
return
_subItems
[0].ForeColor;
617
return
_subItems
[0].Name;
816
return
_subItems
[0].Text;
915
newItem.
_subItems
.Add(subItem);
1251
_subItems
.EnsureCapacity(SubItemCount);
1256
_subItems
.Add(newItem);
1278
info.AddValue($"SubItem{i}",
_subItems
[i], typeof(ListViewSubItem));
1332
_listView.SetItemText(itemIndex, index,
_subItems
[index].Text);
1339
_listView.SetItemText(itemIndex, i,
_subItems
[i].Text);
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (18)
50
return _owner.
_subItems
[index];
57
ListViewSubItem oldSubItem = _owner.
_subItems
[index];
59
_owner.
_subItems
[index] = value.OrThrowIfNull();
113
_owner.
_subItems
.Add(item);
142
_owner.
_subItems
.Add(item);
159
_owner.
_subItems
.Add(new ListViewSubItem(_owner, item));
176
_owner.
_subItems
.Add(new ListViewSubItem(_owner, item, foreColor, backColor, font));
202
_owner.
_subItems
[i].ReleaseUiaProvider();
205
_owner.
_subItems
.Clear();
239
_owner.
_subItems
.EnsureCapacity(_owner.
_subItems
.Count + additionalCapacity);
246
if (_owner.
_subItems
[index] == subItem)
312
_owner.
_subItems
.Insert(index, item);
350
_owner.
_subItems
[index]._owner = null;
351
_owner.
_subItems
[index].ReleaseUiaProvider();
354
_owner.
_subItems
.RemoveAt(index);
377
((ICollection)_owner.
_subItems
).CopyTo(dest, index);
383
return _owner.
_subItems
.GetEnumerator();