1 write to _owner
System.Windows.Forms (1)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (1)
23
_owner
= owner.OrThrowIfNull();
46 references to _owner
System.Windows.Forms (46)
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItemCollection.cs (46)
30
public int Count =>
_owner
.SubItemCount;
50
return
_owner
._subItems[index];
57
ListViewSubItem oldSubItem =
_owner
._subItems[index];
59
_owner
._subItems[index] = value.OrThrowIfNull();
60
value._owner =
_owner
;
65
_owner
.UpdateSubItems(index);
112
item._owner =
_owner
;
113
_owner
._subItems.Add(item);
114
_owner
.UpdateSubItems(
_owner
.SubItemCount++);
120
ListViewSubItem item = new(
_owner
, text);
127
ListViewSubItem item = new(
_owner
, text, foreColor, backColor, font);
141
item._owner =
_owner
;
142
_owner
._subItems.Add(item);
143
_owner
.SubItemCount++;
147
_owner
.UpdateSubItems(-1);
159
_owner
._subItems.Add(new ListViewSubItem(
_owner
, item));
160
_owner
.SubItemCount++;
164
_owner
.UpdateSubItems(-1);
176
_owner
._subItems.Add(new ListViewSubItem(
_owner
, item, foreColor, backColor, font));
177
_owner
.SubItemCount++;
181
_owner
.UpdateSubItems(-1);
196
int oldCount =
_owner
.SubItemCount;
201
_owner
.SubItems[i]._owner = null;
202
_owner
._subItems[i].ReleaseUiaProvider();
205
_owner
._subItems.Clear();
206
_owner
.SubItemCount = 0;
207
_owner
.UpdateSubItems(-1, oldCount);
234
if (
_owner
.SubItemCount >= MaxSubItems)
239
_owner
._subItems.EnsureCapacity(
_owner
._subItems.Count + additionalCapacity);
246
if (
_owner
._subItems[index] == subItem)
307
item._owner =
_owner
;
312
_owner
._subItems.Insert(index, item);
313
_owner
.SubItemCount++;
314
_owner
.UpdateSubItems(-1);
350
_owner
._subItems[index]._owner = null;
351
_owner
._subItems[index].ReleaseUiaProvider();
354
_owner
._subItems.RemoveAt(index);
356
int oldCount =
_owner
.SubItemCount;
357
_owner
.SubItemCount--;
358
_owner
.UpdateSubItems(-1, oldCount);
377
((ICollection)
_owner
._subItems).CopyTo(dest, index);
383
return
_owner
._subItems.GetEnumerator();