1 write to selectedBandIndexes
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridView.cs (1)
468
this.
selectedBandIndexes
= new DataGridViewIntLinkedList();
167 references to selectedBandIndexes
System.Windows.Forms (167)
winforms\Managed\System\WinForms\DataGridView.cs (4)
4630
foreach (int columnIndex in this.
selectedBandIndexes
)
4646
foreach (int rowIndex in this.
selectedBandIndexes
)
4685
foreach (int columnIndex in this.
selectedBandIndexes
)
4716
foreach (int rowIndex in this.
selectedBandIndexes
)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (163)
1418
allCellsSelected = this.
selectedBandIndexes
.Count * this.Rows.Count + this.individualSelectedCells.Count == this.Columns.Count * this.Rows.Count;
1428
if (!this.
selectedBandIndexes
.Contains(dataGridViewColumn.Index))
1451
allCellsSelected = this.
selectedBandIndexes
.Count * this.Columns.Count + this.individualSelectedCells.Count == this.Columns.Count * this.Rows.Count;
1462
Debug.Assert(this.
selectedBandIndexes
.Contains(rowIndex) ==
3439
if (this.
selectedBandIndexes
.Count > DATAGRIDVIEW_bulkPaintThreshold ||
3460
while(this.
selectedBandIndexes
.Count > 0)
3462
SetSelectedRowCore(this.
selectedBandIndexes
.HeadInt, false);
3478
while(this.
selectedBandIndexes
.Count > 0)
3480
SetSelectedColumnCore(this.
selectedBandIndexes
.HeadInt, false);
3555
if (this.
selectedBandIndexes
.Count > DATAGRIDVIEW_bulkPaintThreshold ||
3577
while (bandIndex < this.
selectedBandIndexes
.Count)
3579
if (this.
selectedBandIndexes
[bandIndex] != rowIndexException)
3582
SetSelectedRowCore(this.
selectedBandIndexes
[bandIndex], false);
3600
while (bandIndex < this.
selectedBandIndexes
.Count)
3602
if (this.
selectedBandIndexes
[bandIndex] != columnIndexException)
3605
SetSelectedColumnCore(this.
selectedBandIndexes
[bandIndex], false);
6937
return cellCount + this.
selectedBandIndexes
.Count * this.Rows.Count;
6942
return cellCount + this.
selectedBandIndexes
.Count * this.Columns.Count;
6974
foreach (int columnIndex in this.
selectedBandIndexes
)
6988
foreach (int rowIndex in this.
selectedBandIndexes
)
7910
foreach (int rowIndex in this.
selectedBandIndexes
)
7933
foreach (int columnIndex in this.
selectedBandIndexes
)
12569
Debug.Assert(this.MultiSelect || this.
selectedBandIndexes
.Count <= 1);
12572
if (this.
selectedBandIndexes
.Count > DATAGRIDVIEW_bulkPaintThreshold)
12579
while (bandIndex < this.
selectedBandIndexes
.Count)
12581
if (this.
selectedBandIndexes
[bandIndex] != hti.col)
12584
SetSelectedColumnCore(this.
selectedBandIndexes
[bandIndex], false);
12615
else if (!this.
selectedBandIndexes
.Contains(hti.col))
12622
Debug.Assert(this.
selectedBandIndexes
.Contains(hti.col));
12642
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
12643
if (this.
selectedBandIndexes
.Count > 0)
12645
SetSelectedColumnCore(this.
selectedBandIndexes
.HeadInt, false);
12659
if (this.
selectedBandIndexes
.Count > DATAGRIDVIEW_bulkPaintThreshold)
12666
while (this.
selectedBandIndexes
.Count > 0)
12668
SetSelectedColumnCore(this.
selectedBandIndexes
.HeadInt, false);
12705
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
12706
if (this.
selectedBandIndexes
.Count > 0)
12708
SetSelectedColumnCore(this.
selectedBandIndexes
.HeadInt, false);
12746
Debug.Assert(this.MultiSelect || this.
selectedBandIndexes
.Count <= 1);
12749
if (this.
selectedBandIndexes
.Count > DATAGRIDVIEW_bulkPaintThreshold)
12756
while (bandIndex < this.
selectedBandIndexes
.Count)
12758
if (this.
selectedBandIndexes
[bandIndex] != hti.row)
12761
SetSelectedRowCore(this.
selectedBandIndexes
[bandIndex], false);
12794
Debug.Assert(this.
selectedBandIndexes
.Contains(hti.row) ==
12801
Debug.Assert(this.
selectedBandIndexes
.Contains(hti.row));
12822
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
12823
if (this.
selectedBandIndexes
.Count > 0)
12825
SetSelectedRowCore(this.
selectedBandIndexes
.HeadInt, false);
12839
if (this.
selectedBandIndexes
.Count > DATAGRIDVIEW_bulkPaintThreshold)
12846
while (this.
selectedBandIndexes
.Count > 0)
12848
SetSelectedRowCore(this.
selectedBandIndexes
.HeadInt, false);
12885
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
12886
if (this.
selectedBandIndexes
.Count > 0)
12888
SetSelectedRowCore(this.
selectedBandIndexes
.HeadInt, false);
13683
this.dataGridViewState2[DATAGRIDVIEWSTATE2_raiseSelectionChanged] = this.
selectedBandIndexes
.Count > 0 ||
13685
this.
selectedBandIndexes
.Clear();
14243
Debug.Assert(this.MultiSelect || this.
selectedBandIndexes
.Count <= 1);
14246
if (this.
selectedBandIndexes
.Count > DATAGRIDVIEW_bulkPaintThreshold)
14253
while (bandIndex < this.
selectedBandIndexes
.Count)
14255
if (this.
selectedBandIndexes
[bandIndex] != hti.col)
14258
SetSelectedColumnCore(this.
selectedBandIndexes
[bandIndex], false);
14297
else if (!this.
selectedBandIndexes
.Contains(hti.col))
14333
Debug.Assert(this.
selectedBandIndexes
.Contains(hti.col));
15966
int columnEntries = this.
selectedBandIndexes
.Count;
15970
int columnIndex = this.
selectedBandIndexes
[columnEntry];
15973
this.
selectedBandIndexes
[columnEntry] = columnIndex + 1;
16046
int rowEntries = this.
selectedBandIndexes
.Count;
16050
int rowIndex = this.
selectedBandIndexes
[rowEntry];
16053
this.
selectedBandIndexes
[rowEntry] = rowIndex + insertionCount;
16102
int rowEntries = this.
selectedBandIndexes
.Count;
16106
int rowIndex = this.
selectedBandIndexes
[rowEntry];
16109
this.
selectedBandIndexes
[rowEntry] = rowIndex + dataGridViewRows.Length;
17658
int columnEntries = this.
selectedBandIndexes
.Count;
17662
int columnIndexSelected = this.
selectedBandIndexes
[columnEntry];
17665
this.
selectedBandIndexes
.RemoveAt(columnEntry);
17673
this.
selectedBandIndexes
[columnEntry] = columnIndexSelected - 1;
17765
int rowEntries = this.
selectedBandIndexes
.Count;
17769
int rowIndex = this.
selectedBandIndexes
[rowEntry];
17773
this.
selectedBandIndexes
.RemoveAt(rowEntry);
17780
this.
selectedBandIndexes
[rowEntry] = rowIndex - 1;
18523
Debug.Assert(this.MultiSelect || this.
selectedBandIndexes
.Count <= 1);
18526
if (this.
selectedBandIndexes
.Count > DATAGRIDVIEW_bulkPaintThreshold)
18533
while (bandIndex < this.
selectedBandIndexes
.Count)
18535
if (this.
selectedBandIndexes
[bandIndex] != hti.row)
18538
SetSelectedRowCore(this.
selectedBandIndexes
[bandIndex], false);
18580
Debug.Assert(this.
selectedBandIndexes
.Contains(hti.row) ==
18619
Debug.Assert(this.
selectedBandIndexes
.Contains(hti.row));
20477
this.selectedBandSnapshotIndexes = new DataGridViewIntLinkedList(this.
selectedBandIndexes
);
24471
if (this.
selectedBandIndexes
.Count > DATAGRIDVIEW_bulkPaintThreshold)
24481
Debug.Assert(this.MultiSelect || this.
selectedBandIndexes
.Count <= 1);
24483
while (bandIndex < this.
selectedBandIndexes
.Count)
24485
if (this.
selectedBandIndexes
[bandIndex] != this.ptCurrentCell.X)
24488
SetSelectedColumnCore(this.
selectedBandIndexes
[bandIndex], false);
24498
Debug.Assert(!this.
selectedBandIndexes
.Contains(this.ptCurrentCell.X));
24506
Debug.Assert(this.MultiSelect || this.
selectedBandIndexes
.Count <= 1);
24508
while (bandIndex < this.
selectedBandIndexes
.Count)
24510
if (this.
selectedBandIndexes
[bandIndex] != this.ptCurrentCell.Y)
24513
SetSelectedRowCore(this.
selectedBandIndexes
[bandIndex], false);
24523
Debug.Assert(!this.
selectedBandIndexes
.Contains(this.ptCurrentCell.Y));
25723
if (column.Selected && (!this.
selectedBandIndexes
.Contains(column.Index)))
25725
this.
selectedBandIndexes
.Add(column.Index);
26748
int selectedBand = 0, selectedBands = this.
selectedBandIndexes
.Count;
26758
int columnIndex = this.
selectedBandIndexes
[selectedBand];
26773
int selectedBand = 0, selectedBands = this.
selectedBandIndexes
.Count;
26783
int rowIndex = this.
selectedBandIndexes
[selectedBand];
27316
if (!this.
selectedBandIndexes
.Contains(columnIndex))
27323
Debug.Assert(this.
selectedBandIndexes
.Contains(columnIndex));
27341
if (!this.
selectedBandIndexes
.Contains(columnIndexTo))
27348
Debug.Assert(this.
selectedBandIndexes
.Contains(columnIndexTo));
27376
Debug.Assert(!this.
selectedBandIndexes
.Contains(rowIndex));
27385
Debug.Assert(this.
selectedBandIndexes
.Contains(rowIndex));
27427
if (this.MultiSelect && (this.individualSelectedCells.Count + this.
selectedBandIndexes
.Count) > 1)
27439
else if (this.
selectedBandIndexes
.Count == 1)
27446
if (this.
selectedBandIndexes
.HeadInt != columnIndex)
27455
if (this.
selectedBandIndexes
.HeadInt != rowIndex)
27678
Debug.Assert(this.
selectedBandIndexes
.Contains(columnIndex));
27679
this.
selectedBandIndexes
.Remove(columnIndex);
27712
Debug.Assert(this.
selectedBandIndexes
.Contains(rowIndex));
27713
this.
selectedBandIndexes
.Remove(rowIndex);
27787
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
27789
while (bandIndex < this.
selectedBandIndexes
.Count)
27791
if (this.
selectedBandIndexes
[bandIndex] != columnIndex)
27794
SetSelectedColumnCore(this.
selectedBandIndexes
[bandIndex], false);
27802
if (!this.
selectedBandIndexes
.Contains(columnIndex))
27809
if (this.
selectedBandIndexes
.Contains(columnIndex))
27823
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
27824
if (this.
selectedBandIndexes
.Count > 0)
27826
SetSelectedColumnCore(this.
selectedBandIndexes
.HeadInt, false);
27839
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
27840
if (this.
selectedBandIndexes
.Count > 0)
27842
SetSelectedColumnCore(this.
selectedBandIndexes
.HeadInt, false);
27863
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
27865
while (bandIndex < this.
selectedBandIndexes
.Count)
27867
if (this.
selectedBandIndexes
[bandIndex] != rowIndex)
27870
SetSelectedRowCore(this.
selectedBandIndexes
[bandIndex], false);
27880
Debug.Assert(this.
selectedBandIndexes
.Contains(rowIndex) ==
27889
Debug.Assert(this.
selectedBandIndexes
.Contains(rowIndex) ==
27903
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
27904
if (this.
selectedBandIndexes
.Count > 0)
27906
SetSelectedRowCore(this.
selectedBandIndexes
.HeadInt, false);
27919
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
27920
if (this.
selectedBandIndexes
.Count > 0)
27922
SetSelectedRowCore(this.
selectedBandIndexes
.HeadInt, false);
27970
Debug.Assert(!this.
selectedBandIndexes
.Contains(columnIndex));
27971
this.
selectedBandIndexes
.Add(columnIndex);
27976
Debug.Assert(this.
selectedBandIndexes
.Contains(columnIndex));
27978
this.
selectedBandIndexes
.Remove(columnIndex);
27989
Debug.Assert(this.MultiSelect || this.
selectedBandIndexes
.Count <= 1);
28001
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
28002
if (this.
selectedBandIndexes
.Count > 0)
28004
int columnIndexSelected = this.
selectedBandIndexes
.HeadInt;
28085
Debug.Assert(!this.
selectedBandIndexes
.Contains(rowIndex));
28086
this.
selectedBandIndexes
.Add(rowIndex);
28092
Debug.Assert(this.
selectedBandIndexes
.Contains(rowIndex));
28093
this.
selectedBandIndexes
.Remove(rowIndex);
28105
Debug.Assert(this.MultiSelect || this.
selectedBandIndexes
.Count <= 1);
28117
Debug.Assert(this.
selectedBandIndexes
.Count <= 1);
28118
if (this.
selectedBandIndexes
.Count > 0)
28120
int rowIndexSelected = this.
selectedBandIndexes
.HeadInt;
28366
int row1Selected = this.
selectedBandIndexes
.IndexOf(rowIndex1);
28367
int row2Selected = this.
selectedBandIndexes
.IndexOf(rowIndex2);
28370
this.
selectedBandIndexes
[row1Selected] = rowIndex2;
28374
this.
selectedBandIndexes
[row2Selected] = rowIndex1;