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)
8859
if (
_ptAnchorCell
.Y != -1
8860
&& (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) != 0
8897
if (
_ptAnchorCell
.Y != -1
8898
&& ((Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) == 0
8965
if (
_ptAnchorCell
.X != -1
8966
&& Columns[
_ptAnchorCell
.X].Frozen
9002
if (
_ptAnchorCell
.X != -1
9003
&& (!Columns[
_ptAnchorCell
.X].Frozen || (_trackColumnEdge != -1 && !Columns[_trackColumnEdge].Frozen))
9101
if (((
_ptAnchorCell
.Y != -1 && (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) == 0)
9154
if (((
_ptAnchorCell
.X != -1 && !Columns[
_ptAnchorCell
.X].Frozen) || (_ptCurrentCell.X != -1 && !Columns[_ptCurrentCell.X].Frozen))
12569
if (
_ptAnchorCell
.X == -1)
12575
_ptAnchorCell
.X,
12578
_ptAnchorCell
.Y,
12619
if (MultiSelect && isShiftDown &&
_ptAnchorCell
.X > -1 && Columns[
_ptAnchorCell
.X].Selected)
12666
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, hti._col))
12668
SelectColumnRange(
_ptAnchorCell
.X, hti._col, true);
12672
SelectColumnRange(hti._col,
_ptAnchorCell
.X, true);
12759
if (
_ptAnchorCell
.X == -1)
12765
_ptAnchorCell
.X,
12768
_ptAnchorCell
.Y,
12822
&&
_ptAnchorCell
.Y > -1 && (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
12869
if (hti._row >=
_ptAnchorCell
.Y)
12871
SelectRowRange(
_ptAnchorCell
.Y, hti._row, true);
12875
SelectRowRange(hti._row,
_ptAnchorCell
.Y, true);
12965
if (
_ptAnchorCell
.X == -1)
12971
_ptAnchorCell
.X,
12974
_ptAnchorCell
.Y,
13185
if (
_ptAnchorCell
.X == -1 || IsInnerCellOutOfBounds(hti._col, hti._row))
13191
_ptAnchorCell
.X,
13194
_ptAnchorCell
.Y,
14177
if (MultiSelect && isShiftDown &&
_ptAnchorCell
.X > -1 && Columns[
_ptAnchorCell
.X].Selected)
14233
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, hti._col))
14235
SelectColumnRange(
_ptAnchorCell
.X, hti._col, true);
14239
SelectColumnRange(hti._col,
_ptAnchorCell
.X, true);
18483
&&
_ptAnchorCell
.Y > -1
18484
&& (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
18540
if (hti._row >=
_ptAnchorCell
.Y)
18542
SelectRowRange(
_ptAnchorCell
.Y, hti._row, true);
18546
SelectRowRange(hti._row,
_ptAnchorCell
.Y, true);
20661
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20664
if (_ptCurrentCell.X == -1 ||
_ptAnchorCell
.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20671
_ptAnchorCell
.X,
20674
_ptAnchorCell
.Y,
20794
if (
_ptAnchorCell
.X == -1)
20801
_ptAnchorCell
.X,
20804
_ptAnchorCell
.Y,
20910
if (
_ptAnchorCell
.Y == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20917
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20918
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
21035
if (
_ptAnchorCell
.X == -1)
21041
if (nextVisibleRowIndex >=
_ptAnchorCell
.Y)
21043
SelectRowRange(
_ptAnchorCell
.Y, nextVisibleRowIndex, true);
21047
SelectRowRange(nextVisibleRowIndex,
_ptAnchorCell
.Y, true);
21146
Debug.Assert(
_ptAnchorCell
.Y >= 0);
21147
if (
_ptAnchorCell
.Y == -1 || _ptCurrentCell.Y == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
21156
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
21163
_ptAnchorCell
.X,
21166
_ptAnchorCell
.Y,
21307
if (
_ptAnchorCell
.Y == -1)
21313
if (nextVisibleRowIndex >=
_ptAnchorCell
.Y)
21315
SelectRowRange(
_ptAnchorCell
.Y, nextVisibleRowIndex, true);
21319
SelectRowRange(nextVisibleRowIndex,
_ptAnchorCell
.Y, true);
21333
if (
_ptAnchorCell
.X == -1)
21340
_ptAnchorCell
.X,
21343
_ptAnchorCell
.Y,
21558
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21563
_ptAnchorCell
.X,
21566
_ptAnchorCell
.Y,
21607
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21620
_ptAnchorCell
.X,
21623
_ptAnchorCell
.Y,
21687
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
21729
if (
_ptAnchorCell
.X == -1)
21734
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
21745
if (
_ptAnchorCell
.X == -1)
21751
_ptAnchorCell
.X,
21754
_ptAnchorCell
.Y,
21818
if (
_ptAnchorCell
.Y == -1)
21823
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
22032
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
22037
_ptAnchorCell
.X,
22040
_ptAnchorCell
.Y,
22081
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
22087
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, select: true);
22094
_ptAnchorCell
.X,
22097
_ptAnchorCell
.Y,
22161
if (
_ptAnchorCell
.X == -1)
22166
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
22208
if (
_ptAnchorCell
.X == -1)
22213
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
22224
if (
_ptAnchorCell
.X == -1)
22230
_ptAnchorCell
.X,
22233
_ptAnchorCell
.Y,
22607
Debug.Assert(
_ptAnchorCell
.X >= 0);
22610
if (
_ptAnchorCell
.X == -1)
22616
_ptAnchorCell
.X,
22619
_ptAnchorCell
.Y,
22719
if (
_ptAnchorCell
.X == -1)
22724
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, previousVisibleColumnIndex))
22726
SelectColumnRange(
_ptAnchorCell
.X, previousVisibleColumnIndex, true);
22730
SelectColumnRange(previousVisibleColumnIndex,
_ptAnchorCell
.X, true);
22830
if (
_ptAnchorCell
.X == -1)
22835
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, previousVisibleColumnIndex))
22837
SelectColumnRange(
_ptAnchorCell
.X, previousVisibleColumnIndex, true);
22841
SelectColumnRange(previousVisibleColumnIndex,
_ptAnchorCell
.X, true);
22853
if (
_ptAnchorCell
.X == -1)
22859
_ptAnchorCell
.X,
22862
_ptAnchorCell
.Y,
23021
Debug.Assert(
_ptAnchorCell
.X >= 0);
23024
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
23030
_ptAnchorCell
.X,
23033
_ptAnchorCell
.Y,
23146
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
23152
Debug.Assert(
_ptAnchorCell
.X >= 0);
23153
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
23239
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
23244
Debug.Assert(
_ptAnchorCell
.X >= 0);
23248
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
23255
_ptAnchorCell
.X,
23258
_ptAnchorCell
.Y,
23495
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23498
if (
_ptAnchorCell
.Y == -1)
23504
_ptAnchorCell
.X,
23507
_ptAnchorCell
.Y,
23535
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23536
if (
_ptAnchorCell
.Y == -1)
23541
if (
_ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23543
SelectRowRange(
_ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23547
SelectRowRange(nextScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23571
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23572
if (
_ptAnchorCell
.Y == -1)
23580
if (
_ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23582
SelectRowRange(
_ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23586
SelectRowRange(nextScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23594
_ptAnchorCell
.X,
23597
_ptAnchorCell
.Y,
23758
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23761
if (
_ptAnchorCell
.X == -1)
23767
_ptAnchorCell
.X,
23770
_ptAnchorCell
.Y,
23797
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23798
if (
_ptAnchorCell
.Y == -1)
23803
if (
_ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23805
SelectRowRange(
_ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23809
SelectRowRange(previousScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23833
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23834
if (
_ptAnchorCell
.Y == -1)
23842
if (
_ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23844
SelectRowRange(
_ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23848
SelectRowRange(previousScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23856
_ptAnchorCell
.X,
23859
_ptAnchorCell
.Y,
23997
if (
_ptAnchorCell
.X == -1)
24003
_ptAnchorCell
.X,
24006
_ptAnchorCell
.Y,
24106
if (
_ptAnchorCell
.X == -1)
24111
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, nextVisibleColumnIndex))
24113
SelectColumnRange(
_ptAnchorCell
.X, nextVisibleColumnIndex, true);
24117
SelectColumnRange(nextVisibleColumnIndex,
_ptAnchorCell
.X, true);
24217
if (
_ptAnchorCell
.X == -1)
24222
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, nextVisibleColumnIndex))
24224
SelectColumnRange(
_ptAnchorCell
.X, nextVisibleColumnIndex, true);
24228
SelectColumnRange(nextVisibleColumnIndex,
_ptAnchorCell
.X, true);
24240
if (
_ptAnchorCell
.X == -1)
24248
_ptAnchorCell
.X,
24251
_ptAnchorCell
.Y,
24415
Debug.Assert(
_ptAnchorCell
.X >= 0);
24416
if (
_ptAnchorCell
.X == -1)
24424
_ptAnchorCell
.X,
24427
_ptAnchorCell
.Y,
24510
if (
_ptAnchorCell
.X == -1)
24516
Debug.Assert(
_ptAnchorCell
.X >= 0);
24517
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
24598
Debug.Assert(
_ptAnchorCell
.X >= 0);
24599
if (
_ptAnchorCell
.X == -1)
24607
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
24614
_ptAnchorCell
.X,
24617
_ptAnchorCell
.Y,
25053
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
25058
Debug.Assert(
_ptAnchorCell
.Y >= 0);
25062
_ptAnchorCell
.X,
25065
_ptAnchorCell
.Y,
25155
Debug.Assert(
_ptAnchorCell
.Y >= 0);
25156
if (
_ptAnchorCell
.Y == -1)
25164
_ptAnchorCell
.X,
25167
_ptAnchorCell
.Y,
25251
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
25257
Debug.Assert(
_ptAnchorCell
.Y >= 0);
25258
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, true);
25347
if (
_ptAnchorCell
.Y == -1)
25352
if (
_ptAnchorCell
.Y >= previousVisibleRowIndex)
25354
SelectRowRange(previousVisibleRowIndex,
_ptAnchorCell
.Y, true);
25358
SelectRowRange(
_ptAnchorCell
.Y, previousVisibleRowIndex, true);
25435
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
25440
Debug.Assert(
_ptAnchorCell
.Y >= 0);
25444
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, true);
25451
_ptAnchorCell
.X,
25454
_ptAnchorCell
.Y,
25567
if (
_ptAnchorCell
.Y == -1)
25572
if (
_ptAnchorCell
.Y >= previousVisibleRowIndex)
25574
SelectRowRange(previousVisibleRowIndex,
_ptAnchorCell
.Y, true);
25578
SelectRowRange(
_ptAnchorCell
.Y, previousVisibleRowIndex, true);
25590
if (
_ptAnchorCell
.Y == -1)
25596
_ptAnchorCell
.X,
25599
_ptAnchorCell
.Y,
27105
_ptAnchorCell
.X = dataGridViewColumn.Index;
27106
_ptAnchorCell
.Y = firstVisibleRowIndex;
27110
_ptAnchorCell
.X = -1;
27111
_ptAnchorCell
.Y = -1;
27415
_ptAnchorCell
.X = columnIndex;
27416
_ptAnchorCell
.Y = rowIndex;
27477
_ptAnchorCell
.X = columnIndex;
27478
_ptAnchorCell
.Y = rowIndex;
27571
_ptAnchorCell
.X = -1;
27572
_ptAnchorCell
.Y = -1;