1 write to items
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (1)
190
this.
items
= new RowArrayList(this);
40 references to items
System.Windows.Forms (40)
winforms\Managed\System\WinForms\DataGridViewRowCollection.cs (40)
69
return this.
items
.Contains(value);
76
return this.
items
.IndexOf(value);
140
this.
items
.CopyTo(array, index);
198
return this.
items
.Count;
225
return this.
items
;
233
return this.
items
;
263
if (index == 0 && this.
items
.Count == 1)
739
int index, indexStart = this.
items
.Count;
888
int indexStart = this.
items
.Count;
957
int rowCount = this.
items
.Count;
979
this.
items
.Count == 0) // accessing AllowUserToAddRowsInternal can trigger a nested call to ClearInternal. Rows count needs to be checked again.
991
return this.
items
.IndexOf(dataGridViewRow) != -1;
997
this.
items
.CopyTo(array, index);
1058
while (index < this.
items
.Count && !((GetRowState(index) & includeFilter) == includeFilter))
1062
return (index < this.
items
.Count) ? index : -1;
1109
while (index < this.
items
.Count && (!((GetRowState(index) & includeFilter) == includeFilter) || !((GetRowState(index) & excludeFilter) == 0)))
1113
return (index < this.
items
.Count) ? index : -1;
1149
int index = this.
items
.Count - 1;
1186
while (index < this.
items
.Count && !((GetRowState(index) & includeFilter) == includeFilter))
1190
return (index < this.
items
.Count) ? index : -1;
1218
while (index < this.
items
.Count && (!((GetRowState(index) & includeFilter) == includeFilter) || !((GetRowState(index) & excludeFilter) == 0)))
1222
return (index < this.
items
.Count) ? index : -1;
1233
if (indexStart > this.
items
.Count)
1235
throw new ArgumentOutOfRangeException("indexStart", SR.GetString(SR.InvalidHighBoundArgumentEx, "indexStart", (indexStart).ToString(CultureInfo.CurrentCulture), (this.
items
.Count).ToString(CultureInfo.CurrentCulture)));
1265
if (indexStart > this.
items
.Count)
1267
throw new ArgumentOutOfRangeException("indexStart", SR.GetString(SR.InvalidHighBoundArgumentEx, "indexStart", (indexStart).ToString(CultureInfo.CurrentCulture), (this.
items
.Count).ToString(CultureInfo.CurrentCulture)));
1314
for (int rowIndex = 0; rowIndex < this.
items
.Count; rowIndex++)
1384
for (int rowIndex = 0; rowIndex < this.
items
.Count; rowIndex++)
1388
rowsHeight += ((DataGridViewRow)this.
items
[rowIndex]).GetHeight(rowIndex);
1415
rowsHeight += ((DataGridViewRow)this.
items
[rowIndex]).GetHeight(rowIndex);
1425
Debug.Assert(toRowIndex == this.
items
.Count || (GetRowState(toRowIndex) & includeFilter) == includeFilter);
1432
rowsHeight += ((DataGridViewRow)this.
items
[rowIndex]).GetHeight(rowIndex);
1445
if (rowIndex < 0 || rowIndex >= this.
items
.Count)
1464
return this.
items
.IndexOf(dataGridViewRow);
2474
if (this.
items
.Count > 0)
2477
this.
items
.CustomSort(rowComparer);
2516
object item = this.
items
[rowIndex1];
2517
this.
items
[rowIndex1] = this.
items
[rowIndex2];
2518
this.
items
[rowIndex2] = item;