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]); 295return _subItems[0].BackColor; 403return _subItems[0].Font; 426return _subItems[0].ForeColor; 617return _subItems[0].Name; 816return _subItems[0].Text; 915newItem._subItems.Add(subItem); 1251_subItems.EnsureCapacity(SubItemCount); 1256_subItems.Add(newItem); 1278info.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)
50return _owner._subItems[index]; 57ListViewSubItem 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); 246if (_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); 383return _owner._subItems.GetEnumerator();