1 write to _ptAnchorCell
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
472
_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);
18050
&&
_ptAnchorCell
.Y > -1
18051
&& (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
18107
if (hti._row >=
_ptAnchorCell
.Y)
18109
SelectRowRange(
_ptAnchorCell
.Y, hti._row, true);
18113
SelectRowRange(hti._row,
_ptAnchorCell
.Y, true);
20209
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20212
if (_ptCurrentCell.X == -1 ||
_ptAnchorCell
.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20219
_ptAnchorCell
.X,
20222
_ptAnchorCell
.Y,
20342
if (
_ptAnchorCell
.X == -1)
20349
_ptAnchorCell
.X,
20352
_ptAnchorCell
.Y,
20458
if (
_ptAnchorCell
.Y == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20465
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20466
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
20583
if (
_ptAnchorCell
.X == -1)
20589
if (nextVisibleRowIndex >=
_ptAnchorCell
.Y)
20591
SelectRowRange(
_ptAnchorCell
.Y, nextVisibleRowIndex, true);
20595
SelectRowRange(nextVisibleRowIndex,
_ptAnchorCell
.Y, true);
20694
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20695
if (
_ptAnchorCell
.Y == -1 || _ptCurrentCell.Y == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20704
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
20711
_ptAnchorCell
.X,
20714
_ptAnchorCell
.Y,
20855
if (
_ptAnchorCell
.Y == -1)
20861
if (nextVisibleRowIndex >=
_ptAnchorCell
.Y)
20863
SelectRowRange(
_ptAnchorCell
.Y, nextVisibleRowIndex, true);
20867
SelectRowRange(nextVisibleRowIndex,
_ptAnchorCell
.Y, true);
20881
if (
_ptAnchorCell
.X == -1)
20888
_ptAnchorCell
.X,
20891
_ptAnchorCell
.Y,
21106
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21111
_ptAnchorCell
.X,
21114
_ptAnchorCell
.Y,
21155
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21168
_ptAnchorCell
.X,
21171
_ptAnchorCell
.Y,
21235
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
21277
if (
_ptAnchorCell
.X == -1)
21282
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
21293
if (
_ptAnchorCell
.X == -1)
21299
_ptAnchorCell
.X,
21302
_ptAnchorCell
.Y,
21366
if (
_ptAnchorCell
.Y == -1)
21371
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
21580
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21585
_ptAnchorCell
.X,
21588
_ptAnchorCell
.Y,
21629
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21635
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, select: true);
21642
_ptAnchorCell
.X,
21645
_ptAnchorCell
.Y,
21709
if (
_ptAnchorCell
.X == -1)
21714
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
21756
if (
_ptAnchorCell
.X == -1)
21761
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
21772
if (
_ptAnchorCell
.X == -1)
21778
_ptAnchorCell
.X,
21781
_ptAnchorCell
.Y,
22142
Debug.Assert(
_ptAnchorCell
.X >= 0);
22145
if (
_ptAnchorCell
.X == -1)
22151
_ptAnchorCell
.X,
22154
_ptAnchorCell
.Y,
22254
if (
_ptAnchorCell
.X == -1)
22259
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, previousVisibleColumnIndex))
22261
SelectColumnRange(
_ptAnchorCell
.X, previousVisibleColumnIndex, true);
22265
SelectColumnRange(previousVisibleColumnIndex,
_ptAnchorCell
.X, true);
22365
if (
_ptAnchorCell
.X == -1)
22370
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, previousVisibleColumnIndex))
22372
SelectColumnRange(
_ptAnchorCell
.X, previousVisibleColumnIndex, true);
22376
SelectColumnRange(previousVisibleColumnIndex,
_ptAnchorCell
.X, true);
22388
if (
_ptAnchorCell
.X == -1)
22394
_ptAnchorCell
.X,
22397
_ptAnchorCell
.Y,
22556
Debug.Assert(
_ptAnchorCell
.X >= 0);
22559
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22565
_ptAnchorCell
.X,
22568
_ptAnchorCell
.Y,
22681
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22687
Debug.Assert(
_ptAnchorCell
.X >= 0);
22688
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
22774
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22779
Debug.Assert(
_ptAnchorCell
.X >= 0);
22783
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
22790
_ptAnchorCell
.X,
22793
_ptAnchorCell
.Y,
23033
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23036
if (
_ptAnchorCell
.Y == -1)
23042
_ptAnchorCell
.X,
23045
_ptAnchorCell
.Y,
23073
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23074
if (
_ptAnchorCell
.Y == -1)
23079
if (
_ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23081
SelectRowRange(
_ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23085
SelectRowRange(nextScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23109
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23110
if (
_ptAnchorCell
.Y == -1)
23118
if (
_ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23120
SelectRowRange(
_ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23124
SelectRowRange(nextScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23132
_ptAnchorCell
.X,
23135
_ptAnchorCell
.Y,
23292
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23295
if (
_ptAnchorCell
.X == -1)
23301
_ptAnchorCell
.X,
23304
_ptAnchorCell
.Y,
23331
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23332
if (
_ptAnchorCell
.Y == -1)
23337
if (
_ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23339
SelectRowRange(
_ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23343
SelectRowRange(previousScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23367
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23368
if (
_ptAnchorCell
.Y == -1)
23376
if (
_ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23378
SelectRowRange(
_ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23382
SelectRowRange(previousScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23390
_ptAnchorCell
.X,
23393
_ptAnchorCell
.Y,
23523
if (
_ptAnchorCell
.X == -1)
23529
_ptAnchorCell
.X,
23532
_ptAnchorCell
.Y,
23632
if (
_ptAnchorCell
.X == -1)
23637
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, nextVisibleColumnIndex))
23639
SelectColumnRange(
_ptAnchorCell
.X, nextVisibleColumnIndex, true);
23643
SelectColumnRange(nextVisibleColumnIndex,
_ptAnchorCell
.X, true);
23743
if (
_ptAnchorCell
.X == -1)
23748
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, nextVisibleColumnIndex))
23750
SelectColumnRange(
_ptAnchorCell
.X, nextVisibleColumnIndex, true);
23754
SelectColumnRange(nextVisibleColumnIndex,
_ptAnchorCell
.X, true);
23766
if (
_ptAnchorCell
.X == -1)
23774
_ptAnchorCell
.X,
23777
_ptAnchorCell
.Y,
23941
Debug.Assert(
_ptAnchorCell
.X >= 0);
23942
if (
_ptAnchorCell
.X == -1)
23950
_ptAnchorCell
.X,
23953
_ptAnchorCell
.Y,
24036
if (
_ptAnchorCell
.X == -1)
24042
Debug.Assert(
_ptAnchorCell
.X >= 0);
24043
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
24124
Debug.Assert(
_ptAnchorCell
.X >= 0);
24125
if (
_ptAnchorCell
.X == -1)
24133
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
24140
_ptAnchorCell
.X,
24143
_ptAnchorCell
.Y,
24579
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24584
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24588
_ptAnchorCell
.X,
24591
_ptAnchorCell
.Y,
24681
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24682
if (
_ptAnchorCell
.Y == -1)
24690
_ptAnchorCell
.X,
24693
_ptAnchorCell
.Y,
24777
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24783
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24784
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, true);
24873
if (
_ptAnchorCell
.Y == -1)
24878
if (
_ptAnchorCell
.Y >= previousVisibleRowIndex)
24880
SelectRowRange(previousVisibleRowIndex,
_ptAnchorCell
.Y, true);
24884
SelectRowRange(
_ptAnchorCell
.Y, previousVisibleRowIndex, true);
24961
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24966
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24970
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, true);
24977
_ptAnchorCell
.X,
24980
_ptAnchorCell
.Y,
25093
if (
_ptAnchorCell
.Y == -1)
25098
if (
_ptAnchorCell
.Y >= previousVisibleRowIndex)
25100
SelectRowRange(previousVisibleRowIndex,
_ptAnchorCell
.Y, true);
25104
SelectRowRange(
_ptAnchorCell
.Y, previousVisibleRowIndex, true);
25116
if (
_ptAnchorCell
.Y == -1)
25122
_ptAnchorCell
.X,
25125
_ptAnchorCell
.Y,
26625
_ptAnchorCell
.X = dataGridViewColumn.Index;
26626
_ptAnchorCell
.Y = firstVisibleRowIndex;
26630
_ptAnchorCell
.X = -1;
26631
_ptAnchorCell
.Y = -1;
26935
_ptAnchorCell
.X = columnIndex;
26936
_ptAnchorCell
.Y = rowIndex;
26997
_ptAnchorCell
.X = columnIndex;
26998
_ptAnchorCell
.Y = rowIndex;
27092
_ptAnchorCell
.X = -1;
27093
_ptAnchorCell
.Y = -1;