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)
8594
if (
_ptAnchorCell
.Y != -1
8595
&& (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) != 0
8632
if (
_ptAnchorCell
.Y != -1
8633
&& ((Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) == 0
8686
if (
_ptAnchorCell
.X != -1
8687
&& Columns[
_ptAnchorCell
.X].Frozen
8715
if (
_ptAnchorCell
.X != -1
8716
&& (!Columns[
_ptAnchorCell
.X].Frozen || (_trackColumnEdge != -1 && !Columns[_trackColumnEdge].Frozen))
8814
if (((
_ptAnchorCell
.Y != -1 && (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) == 0)
8867
if (((
_ptAnchorCell
.X != -1 && !Columns[
_ptAnchorCell
.X].Frozen) || (_ptCurrentCell.X != -1 && !Columns[_ptCurrentCell.X].Frozen))
12154
if (
_ptAnchorCell
.X == -1)
12160
_ptAnchorCell
.X,
12163
_ptAnchorCell
.Y,
12204
if (MultiSelect && isShiftDown &&
_ptAnchorCell
.X > -1 && Columns[
_ptAnchorCell
.X].Selected)
12251
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, hti._col))
12253
SelectColumnRange(
_ptAnchorCell
.X, hti._col, true);
12257
SelectColumnRange(hti._col,
_ptAnchorCell
.X, true);
12344
if (
_ptAnchorCell
.X == -1)
12350
_ptAnchorCell
.X,
12353
_ptAnchorCell
.Y,
12407
&&
_ptAnchorCell
.Y > -1 && (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
12454
if (hti._row >=
_ptAnchorCell
.Y)
12456
SelectRowRange(
_ptAnchorCell
.Y, hti._row, true);
12460
SelectRowRange(hti._row,
_ptAnchorCell
.Y, true);
12550
if (
_ptAnchorCell
.X == -1)
12556
_ptAnchorCell
.X,
12559
_ptAnchorCell
.Y,
12774
if (
_ptAnchorCell
.X == -1 || IsInnerCellOutOfBounds(hti._col, hti._row))
12780
_ptAnchorCell
.X,
12783
_ptAnchorCell
.Y,
13766
if (MultiSelect && isShiftDown &&
_ptAnchorCell
.X > -1 && Columns[
_ptAnchorCell
.X].Selected)
13822
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, hti._col))
13824
SelectColumnRange(
_ptAnchorCell
.X, hti._col, true);
13828
SelectColumnRange(hti._col,
_ptAnchorCell
.X, true);
18047
&&
_ptAnchorCell
.Y > -1
18048
&& (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
18104
if (hti._row >=
_ptAnchorCell
.Y)
18106
SelectRowRange(
_ptAnchorCell
.Y, hti._row, true);
18110
SelectRowRange(hti._row,
_ptAnchorCell
.Y, true);
20206
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20209
if (_ptCurrentCell.X == -1 ||
_ptAnchorCell
.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20216
_ptAnchorCell
.X,
20219
_ptAnchorCell
.Y,
20339
if (
_ptAnchorCell
.X == -1)
20346
_ptAnchorCell
.X,
20349
_ptAnchorCell
.Y,
20455
if (
_ptAnchorCell
.Y == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20462
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20463
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
20580
if (
_ptAnchorCell
.X == -1)
20586
if (nextVisibleRowIndex >=
_ptAnchorCell
.Y)
20588
SelectRowRange(
_ptAnchorCell
.Y, nextVisibleRowIndex, true);
20592
SelectRowRange(nextVisibleRowIndex,
_ptAnchorCell
.Y, true);
20691
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20692
if (
_ptAnchorCell
.Y == -1 || _ptCurrentCell.Y == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20701
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
20708
_ptAnchorCell
.X,
20711
_ptAnchorCell
.Y,
20852
if (
_ptAnchorCell
.Y == -1)
20858
if (nextVisibleRowIndex >=
_ptAnchorCell
.Y)
20860
SelectRowRange(
_ptAnchorCell
.Y, nextVisibleRowIndex, true);
20864
SelectRowRange(nextVisibleRowIndex,
_ptAnchorCell
.Y, true);
20878
if (
_ptAnchorCell
.X == -1)
20885
_ptAnchorCell
.X,
20888
_ptAnchorCell
.Y,
21103
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21108
_ptAnchorCell
.X,
21111
_ptAnchorCell
.Y,
21152
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21165
_ptAnchorCell
.X,
21168
_ptAnchorCell
.Y,
21232
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
21274
if (
_ptAnchorCell
.X == -1)
21279
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
21290
if (
_ptAnchorCell
.X == -1)
21296
_ptAnchorCell
.X,
21299
_ptAnchorCell
.Y,
21363
if (
_ptAnchorCell
.Y == -1)
21368
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
21577
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21582
_ptAnchorCell
.X,
21585
_ptAnchorCell
.Y,
21626
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21632
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, select: true);
21639
_ptAnchorCell
.X,
21642
_ptAnchorCell
.Y,
21706
if (
_ptAnchorCell
.X == -1)
21711
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
21753
if (
_ptAnchorCell
.X == -1)
21758
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
21769
if (
_ptAnchorCell
.X == -1)
21775
_ptAnchorCell
.X,
21778
_ptAnchorCell
.Y,
22139
Debug.Assert(
_ptAnchorCell
.X >= 0);
22142
if (
_ptAnchorCell
.X == -1)
22148
_ptAnchorCell
.X,
22151
_ptAnchorCell
.Y,
22251
if (
_ptAnchorCell
.X == -1)
22256
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, previousVisibleColumnIndex))
22258
SelectColumnRange(
_ptAnchorCell
.X, previousVisibleColumnIndex, true);
22262
SelectColumnRange(previousVisibleColumnIndex,
_ptAnchorCell
.X, true);
22362
if (
_ptAnchorCell
.X == -1)
22367
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, previousVisibleColumnIndex))
22369
SelectColumnRange(
_ptAnchorCell
.X, previousVisibleColumnIndex, true);
22373
SelectColumnRange(previousVisibleColumnIndex,
_ptAnchorCell
.X, true);
22385
if (
_ptAnchorCell
.X == -1)
22391
_ptAnchorCell
.X,
22394
_ptAnchorCell
.Y,
22553
Debug.Assert(
_ptAnchorCell
.X >= 0);
22556
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22562
_ptAnchorCell
.X,
22565
_ptAnchorCell
.Y,
22678
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22684
Debug.Assert(
_ptAnchorCell
.X >= 0);
22685
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
22771
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22776
Debug.Assert(
_ptAnchorCell
.X >= 0);
22780
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
22787
_ptAnchorCell
.X,
22790
_ptAnchorCell
.Y,
23030
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23033
if (
_ptAnchorCell
.Y == -1)
23039
_ptAnchorCell
.X,
23042
_ptAnchorCell
.Y,
23070
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23071
if (
_ptAnchorCell
.Y == -1)
23076
if (
_ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23078
SelectRowRange(
_ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23082
SelectRowRange(nextScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23106
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23107
if (
_ptAnchorCell
.Y == -1)
23115
if (
_ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23117
SelectRowRange(
_ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23121
SelectRowRange(nextScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23129
_ptAnchorCell
.X,
23132
_ptAnchorCell
.Y,
23289
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23292
if (
_ptAnchorCell
.X == -1)
23298
_ptAnchorCell
.X,
23301
_ptAnchorCell
.Y,
23328
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23329
if (
_ptAnchorCell
.Y == -1)
23334
if (
_ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23336
SelectRowRange(
_ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23340
SelectRowRange(previousScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23364
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23365
if (
_ptAnchorCell
.Y == -1)
23373
if (
_ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23375
SelectRowRange(
_ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23379
SelectRowRange(previousScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23387
_ptAnchorCell
.X,
23390
_ptAnchorCell
.Y,
23520
if (
_ptAnchorCell
.X == -1)
23526
_ptAnchorCell
.X,
23529
_ptAnchorCell
.Y,
23629
if (
_ptAnchorCell
.X == -1)
23634
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, nextVisibleColumnIndex))
23636
SelectColumnRange(
_ptAnchorCell
.X, nextVisibleColumnIndex, true);
23640
SelectColumnRange(nextVisibleColumnIndex,
_ptAnchorCell
.X, true);
23740
if (
_ptAnchorCell
.X == -1)
23745
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, nextVisibleColumnIndex))
23747
SelectColumnRange(
_ptAnchorCell
.X, nextVisibleColumnIndex, true);
23751
SelectColumnRange(nextVisibleColumnIndex,
_ptAnchorCell
.X, true);
23763
if (
_ptAnchorCell
.X == -1)
23771
_ptAnchorCell
.X,
23774
_ptAnchorCell
.Y,
23938
Debug.Assert(
_ptAnchorCell
.X >= 0);
23939
if (
_ptAnchorCell
.X == -1)
23947
_ptAnchorCell
.X,
23950
_ptAnchorCell
.Y,
24033
if (
_ptAnchorCell
.X == -1)
24039
Debug.Assert(
_ptAnchorCell
.X >= 0);
24040
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
24121
Debug.Assert(
_ptAnchorCell
.X >= 0);
24122
if (
_ptAnchorCell
.X == -1)
24130
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
24137
_ptAnchorCell
.X,
24140
_ptAnchorCell
.Y,
24576
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24581
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24585
_ptAnchorCell
.X,
24588
_ptAnchorCell
.Y,
24678
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24679
if (
_ptAnchorCell
.Y == -1)
24687
_ptAnchorCell
.X,
24690
_ptAnchorCell
.Y,
24774
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24780
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24781
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, true);
24870
if (
_ptAnchorCell
.Y == -1)
24875
if (
_ptAnchorCell
.Y >= previousVisibleRowIndex)
24877
SelectRowRange(previousVisibleRowIndex,
_ptAnchorCell
.Y, true);
24881
SelectRowRange(
_ptAnchorCell
.Y, previousVisibleRowIndex, true);
24958
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24963
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24967
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, true);
24974
_ptAnchorCell
.X,
24977
_ptAnchorCell
.Y,
25090
if (
_ptAnchorCell
.Y == -1)
25095
if (
_ptAnchorCell
.Y >= previousVisibleRowIndex)
25097
SelectRowRange(previousVisibleRowIndex,
_ptAnchorCell
.Y, true);
25101
SelectRowRange(
_ptAnchorCell
.Y, previousVisibleRowIndex, true);
25113
if (
_ptAnchorCell
.Y == -1)
25119
_ptAnchorCell
.X,
25122
_ptAnchorCell
.Y,
26622
_ptAnchorCell
.X = dataGridViewColumn.Index;
26623
_ptAnchorCell
.Y = firstVisibleRowIndex;
26627
_ptAnchorCell
.X = -1;
26628
_ptAnchorCell
.Y = -1;
26932
_ptAnchorCell
.X = columnIndex;
26933
_ptAnchorCell
.Y = rowIndex;
26994
_ptAnchorCell
.X = columnIndex;
26995
_ptAnchorCell
.Y = rowIndex;
27089
_ptAnchorCell
.X = -1;
27090
_ptAnchorCell
.Y = -1;