1 write to _ptAnchorCell
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
476
_ptAnchorCell
= new Point(-1, -1);
220 references to _ptAnchorCell
System.Windows.Forms (220)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (220)
8597
if (
_ptAnchorCell
.Y != -1
8598
&& (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) != 0
8635
if (
_ptAnchorCell
.Y != -1
8636
&& ((Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) == 0
8689
if (
_ptAnchorCell
.X != -1
8690
&& Columns[
_ptAnchorCell
.X].Frozen
8718
if (
_ptAnchorCell
.X != -1
8719
&& (!Columns[
_ptAnchorCell
.X].Frozen || (_trackColumnEdge != -1 && !Columns[_trackColumnEdge].Frozen))
8817
if (((
_ptAnchorCell
.Y != -1 && (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) == 0)
8870
if (((
_ptAnchorCell
.X != -1 && !Columns[
_ptAnchorCell
.X].Frozen) || (_ptCurrentCell.X != -1 && !Columns[_ptCurrentCell.X].Frozen))
12157
if (
_ptAnchorCell
.X == -1)
12163
_ptAnchorCell
.X,
12166
_ptAnchorCell
.Y,
12207
if (MultiSelect && isShiftDown &&
_ptAnchorCell
.X > -1 && Columns[
_ptAnchorCell
.X].Selected)
12254
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, hti._col))
12256
SelectColumnRange(
_ptAnchorCell
.X, hti._col, true);
12260
SelectColumnRange(hti._col,
_ptAnchorCell
.X, true);
12347
if (
_ptAnchorCell
.X == -1)
12353
_ptAnchorCell
.X,
12356
_ptAnchorCell
.Y,
12410
&&
_ptAnchorCell
.Y > -1 && (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
12457
if (hti._row >=
_ptAnchorCell
.Y)
12459
SelectRowRange(
_ptAnchorCell
.Y, hti._row, true);
12463
SelectRowRange(hti._row,
_ptAnchorCell
.Y, true);
12553
if (
_ptAnchorCell
.X == -1)
12559
_ptAnchorCell
.X,
12562
_ptAnchorCell
.Y,
12777
if (
_ptAnchorCell
.X == -1 || IsInnerCellOutOfBounds(hti._col, hti._row))
12783
_ptAnchorCell
.X,
12786
_ptAnchorCell
.Y,
13769
if (MultiSelect && isShiftDown &&
_ptAnchorCell
.X > -1 && Columns[
_ptAnchorCell
.X].Selected)
13825
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, hti._col))
13827
SelectColumnRange(
_ptAnchorCell
.X, hti._col, true);
13831
SelectColumnRange(hti._col,
_ptAnchorCell
.X, true);
18053
&&
_ptAnchorCell
.Y > -1
18054
&& (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
18110
if (hti._row >=
_ptAnchorCell
.Y)
18112
SelectRowRange(
_ptAnchorCell
.Y, hti._row, true);
18116
SelectRowRange(hti._row,
_ptAnchorCell
.Y, true);
20215
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20218
if (_ptCurrentCell.X == -1 ||
_ptAnchorCell
.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20225
_ptAnchorCell
.X,
20228
_ptAnchorCell
.Y,
20348
if (
_ptAnchorCell
.X == -1)
20355
_ptAnchorCell
.X,
20358
_ptAnchorCell
.Y,
20464
if (
_ptAnchorCell
.Y == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20471
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20472
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
20589
if (
_ptAnchorCell
.X == -1)
20595
if (nextVisibleRowIndex >=
_ptAnchorCell
.Y)
20597
SelectRowRange(
_ptAnchorCell
.Y, nextVisibleRowIndex, true);
20601
SelectRowRange(nextVisibleRowIndex,
_ptAnchorCell
.Y, true);
20700
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20701
if (
_ptAnchorCell
.Y == -1 || _ptCurrentCell.Y == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20710
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
20717
_ptAnchorCell
.X,
20720
_ptAnchorCell
.Y,
20861
if (
_ptAnchorCell
.Y == -1)
20867
if (nextVisibleRowIndex >=
_ptAnchorCell
.Y)
20869
SelectRowRange(
_ptAnchorCell
.Y, nextVisibleRowIndex, true);
20873
SelectRowRange(nextVisibleRowIndex,
_ptAnchorCell
.Y, true);
20887
if (
_ptAnchorCell
.X == -1)
20894
_ptAnchorCell
.X,
20897
_ptAnchorCell
.Y,
21112
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21117
_ptAnchorCell
.X,
21120
_ptAnchorCell
.Y,
21161
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21174
_ptAnchorCell
.X,
21177
_ptAnchorCell
.Y,
21241
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
21283
if (
_ptAnchorCell
.X == -1)
21288
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
21299
if (
_ptAnchorCell
.X == -1)
21305
_ptAnchorCell
.X,
21308
_ptAnchorCell
.Y,
21372
if (
_ptAnchorCell
.Y == -1)
21377
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
21586
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21591
_ptAnchorCell
.X,
21594
_ptAnchorCell
.Y,
21635
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21641
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, select: true);
21648
_ptAnchorCell
.X,
21651
_ptAnchorCell
.Y,
21715
if (
_ptAnchorCell
.X == -1)
21720
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
21762
if (
_ptAnchorCell
.X == -1)
21767
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
21778
if (
_ptAnchorCell
.X == -1)
21784
_ptAnchorCell
.X,
21787
_ptAnchorCell
.Y,
22148
Debug.Assert(
_ptAnchorCell
.X >= 0);
22151
if (
_ptAnchorCell
.X == -1)
22157
_ptAnchorCell
.X,
22160
_ptAnchorCell
.Y,
22260
if (
_ptAnchorCell
.X == -1)
22265
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, previousVisibleColumnIndex))
22267
SelectColumnRange(
_ptAnchorCell
.X, previousVisibleColumnIndex, true);
22271
SelectColumnRange(previousVisibleColumnIndex,
_ptAnchorCell
.X, true);
22371
if (
_ptAnchorCell
.X == -1)
22376
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, previousVisibleColumnIndex))
22378
SelectColumnRange(
_ptAnchorCell
.X, previousVisibleColumnIndex, true);
22382
SelectColumnRange(previousVisibleColumnIndex,
_ptAnchorCell
.X, true);
22394
if (
_ptAnchorCell
.X == -1)
22400
_ptAnchorCell
.X,
22403
_ptAnchorCell
.Y,
22562
Debug.Assert(
_ptAnchorCell
.X >= 0);
22565
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22571
_ptAnchorCell
.X,
22574
_ptAnchorCell
.Y,
22687
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22693
Debug.Assert(
_ptAnchorCell
.X >= 0);
22694
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
22780
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22785
Debug.Assert(
_ptAnchorCell
.X >= 0);
22789
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
22796
_ptAnchorCell
.X,
22799
_ptAnchorCell
.Y,
23039
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23042
if (
_ptAnchorCell
.Y == -1)
23048
_ptAnchorCell
.X,
23051
_ptAnchorCell
.Y,
23079
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23080
if (
_ptAnchorCell
.Y == -1)
23085
if (
_ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23087
SelectRowRange(
_ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23091
SelectRowRange(nextScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23115
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23116
if (
_ptAnchorCell
.Y == -1)
23124
if (
_ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23126
SelectRowRange(
_ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23130
SelectRowRange(nextScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23138
_ptAnchorCell
.X,
23141
_ptAnchorCell
.Y,
23298
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23301
if (
_ptAnchorCell
.X == -1)
23307
_ptAnchorCell
.X,
23310
_ptAnchorCell
.Y,
23337
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23338
if (
_ptAnchorCell
.Y == -1)
23343
if (
_ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23345
SelectRowRange(
_ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23349
SelectRowRange(previousScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23373
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23374
if (
_ptAnchorCell
.Y == -1)
23382
if (
_ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23384
SelectRowRange(
_ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23388
SelectRowRange(previousScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23396
_ptAnchorCell
.X,
23399
_ptAnchorCell
.Y,
23529
if (
_ptAnchorCell
.X == -1)
23535
_ptAnchorCell
.X,
23538
_ptAnchorCell
.Y,
23638
if (
_ptAnchorCell
.X == -1)
23643
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, nextVisibleColumnIndex))
23645
SelectColumnRange(
_ptAnchorCell
.X, nextVisibleColumnIndex, true);
23649
SelectColumnRange(nextVisibleColumnIndex,
_ptAnchorCell
.X, true);
23749
if (
_ptAnchorCell
.X == -1)
23754
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, nextVisibleColumnIndex))
23756
SelectColumnRange(
_ptAnchorCell
.X, nextVisibleColumnIndex, true);
23760
SelectColumnRange(nextVisibleColumnIndex,
_ptAnchorCell
.X, true);
23772
if (
_ptAnchorCell
.X == -1)
23780
_ptAnchorCell
.X,
23783
_ptAnchorCell
.Y,
23947
Debug.Assert(
_ptAnchorCell
.X >= 0);
23948
if (
_ptAnchorCell
.X == -1)
23956
_ptAnchorCell
.X,
23959
_ptAnchorCell
.Y,
24042
if (
_ptAnchorCell
.X == -1)
24048
Debug.Assert(
_ptAnchorCell
.X >= 0);
24049
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
24130
Debug.Assert(
_ptAnchorCell
.X >= 0);
24131
if (
_ptAnchorCell
.X == -1)
24139
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
24146
_ptAnchorCell
.X,
24149
_ptAnchorCell
.Y,
24585
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24590
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24594
_ptAnchorCell
.X,
24597
_ptAnchorCell
.Y,
24687
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24688
if (
_ptAnchorCell
.Y == -1)
24696
_ptAnchorCell
.X,
24699
_ptAnchorCell
.Y,
24783
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24789
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24790
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, true);
24879
if (
_ptAnchorCell
.Y == -1)
24884
if (
_ptAnchorCell
.Y >= previousVisibleRowIndex)
24886
SelectRowRange(previousVisibleRowIndex,
_ptAnchorCell
.Y, true);
24890
SelectRowRange(
_ptAnchorCell
.Y, previousVisibleRowIndex, true);
24967
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24972
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24976
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, true);
24983
_ptAnchorCell
.X,
24986
_ptAnchorCell
.Y,
25099
if (
_ptAnchorCell
.Y == -1)
25104
if (
_ptAnchorCell
.Y >= previousVisibleRowIndex)
25106
SelectRowRange(previousVisibleRowIndex,
_ptAnchorCell
.Y, true);
25110
SelectRowRange(
_ptAnchorCell
.Y, previousVisibleRowIndex, true);
25122
if (
_ptAnchorCell
.Y == -1)
25128
_ptAnchorCell
.X,
25131
_ptAnchorCell
.Y,
26631
_ptAnchorCell
.X = dataGridViewColumn.Index;
26632
_ptAnchorCell
.Y = firstVisibleRowIndex;
26636
_ptAnchorCell
.X = -1;
26637
_ptAnchorCell
.Y = -1;
26941
_ptAnchorCell
.X = columnIndex;
26942
_ptAnchorCell
.Y = rowIndex;
27003
_ptAnchorCell
.X = columnIndex;
27004
_ptAnchorCell
.Y = rowIndex;
27097
_ptAnchorCell
.X = -1;
27098
_ptAnchorCell
.Y = -1;