1 write to _items
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (1)
86
_items
= new RowList(this);
38 references to _items
System.Windows.Forms (38)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowCollection.cs (38)
43
bool IList.Contains(object? value) =>
_items
.Contains(value);
45
int IList.IndexOf(object? value) =>
_items
.IndexOf((DataGridViewRow)value!);
67
((ICollection)
_items
).CopyTo(array, index);
89
public int Count =>
_items
.Count;
106
return ArrayList.Adapter(
_items
);
110
internal List<DataGridViewRow> SharedList =>
_items
;
584
int index, indexStart =
_items
.Count;
741
int indexStart =
_items
.Count;
811
int rowCount =
_items
.Count;
833
_items
.Count == 0) // accessing AllowUserToAddRowsInternal can trigger a nested call to ClearInternal. Rows count needs to be checked again.
844
return
_items
.IndexOf(dataGridViewRow) != -1;
849
_items
.CopyTo(array, index);
914
while (index <
_items
.Count && !((GetRowState(index) & includeFilter) == includeFilter))
919
return (index <
_items
.Count) ? index : -1;
970
while (index <
_items
.Count && (!((GetRowState(index) & includeFilter) == includeFilter) || !((GetRowState(index) & excludeFilter) == 0)))
975
return (index <
_items
.Count) ? index : -1;
1013
int index =
_items
.Count - 1;
1048
while (index <
_items
.Count && !((GetRowState(index) & includeFilter) == includeFilter))
1053
return (index <
_items
.Count) ? index : -1;
1080
while (index <
_items
.Count && (!((GetRowState(index) & includeFilter) == includeFilter) || !((GetRowState(index) & excludeFilter) == 0)))
1085
return (index <
_items
.Count) ? index : -1;
1096
ArgumentOutOfRangeException.ThrowIfGreaterThan(indexStart,
_items
.Count);
1128
ArgumentOutOfRangeException.ThrowIfGreaterThan(indexStart,
_items
.Count);
1177
for (int rowIndex = 0; rowIndex <
_items
.Count; rowIndex++)
1209
if (index != -1 &&
_items
[index] == row)
1266
for (int rowIndex = 0; rowIndex <
_items
.Count; rowIndex++)
1270
rowsHeight +=
_items
[rowIndex].GetHeight(rowIndex);
1298
rowsHeight +=
_items
[rowIndex].GetHeight(rowIndex);
1309
Debug.Assert(toRowIndex ==
_items
.Count || (GetRowState(toRowIndex) & includeFilter) == includeFilter);
1316
rowsHeight +=
_items
[rowIndex].GetHeight(rowIndex);
1329
if (rowIndex < 0 || rowIndex >=
_items
.Count)
1348
return
_items
.IndexOf(dataGridViewRow);
2371
if (
_items
.Count > 0)
2374
_items
.CustomSort(rowComparer);
2414
(
_items
[rowIndex1],
_items
[rowIndex2]) = (
_items
[rowIndex2],
_items
[rowIndex1]);