14 writes to SubItemCount
System.Windows.Forms (14)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (7)
102SubItemCount = items.Length; 120SubItemCount = subItems.Length; 193SubItemCount = items.Length; 211SubItemCount = subItems.Length; 780SubItemCount = 1; 919newItem.SubItemCount = SubItemCount; 1206SubItemCount = info.GetInt32(nameof(SubItemCount));
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (7)
114_owner.UpdateSubItems(_owner.SubItemCount++); 143_owner.SubItemCount++; 160_owner.SubItemCount++; 177_owner.SubItemCount++; 206_owner.SubItemCount = 0; 313_owner.SubItemCount++; 357_owner.SubItemCount--;
22 references to SubItemCount
System.Windows.Forms (22)
System\Windows\Forms\Controls\ListView\ListViewItem.cs (18)
284if (SubItemCount == 0) 392if (SubItemCount == 0) 415if (SubItemCount == 0) 611if (SubItemCount == 0) 777if (SubItemCount == 0) 810if (SubItemCount == 0) 919newItem.SubItemCount = SubItemCount; 1204else if (entry.Name == nameof(SubItemCount)) 1206SubItemCount = info.GetInt32(nameof(SubItemCount)); 1207if (SubItemCount > 0) 1251_subItems.EnsureCapacity(SubItemCount); 1252for (int i = 1; i < SubItemCount; i++) 1273if (SubItemCount > 1) 1275info.AddValue(nameof(SubItemCount), SubItemCount); 1276for (int i = 1; i < SubItemCount; i++) 1318internal void UpdateSubItems(int index) => UpdateSubItems(index, SubItemCount); 1327int subItemCount = SubItemCount;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (4)
30public int Count => _owner.SubItemCount; 196int oldCount = _owner.SubItemCount; 234if (_owner.SubItemCount >= MaxSubItems) 356int oldCount = _owner.SubItemCount;