1 write to _ptAnchorCell
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
477
_ptAnchorCell
= new Point(-1, -1);
220 references to _ptAnchorCell
System.Windows.Forms (220)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (220)
8653
if (
_ptAnchorCell
.Y != -1
8654
&& (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) != 0
8691
if (
_ptAnchorCell
.Y != -1
8692
&& ((Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) == 0
8745
if (
_ptAnchorCell
.X != -1
8746
&& Columns[
_ptAnchorCell
.X].Frozen
8774
if (
_ptAnchorCell
.X != -1
8775
&& (!Columns[
_ptAnchorCell
.X].Frozen || (_trackColumnEdge != -1 && !Columns[_trackColumnEdge].Frozen))
8873
if (((
_ptAnchorCell
.Y != -1 && (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) == 0)
8926
if (((
_ptAnchorCell
.X != -1 && !Columns[
_ptAnchorCell
.X].Frozen) || (_ptCurrentCell.X != -1 && !Columns[_ptCurrentCell.X].Frozen))
12213
if (
_ptAnchorCell
.X == -1)
12219
_ptAnchorCell
.X,
12222
_ptAnchorCell
.Y,
12263
if (MultiSelect && isShiftDown &&
_ptAnchorCell
.X > -1 && Columns[
_ptAnchorCell
.X].Selected)
12310
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, hti._col))
12312
SelectColumnRange(
_ptAnchorCell
.X, hti._col, true);
12316
SelectColumnRange(hti._col,
_ptAnchorCell
.X, true);
12403
if (
_ptAnchorCell
.X == -1)
12409
_ptAnchorCell
.X,
12412
_ptAnchorCell
.Y,
12466
&&
_ptAnchorCell
.Y > -1 && (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
12513
if (hti._row >=
_ptAnchorCell
.Y)
12515
SelectRowRange(
_ptAnchorCell
.Y, hti._row, true);
12519
SelectRowRange(hti._row,
_ptAnchorCell
.Y, true);
12609
if (
_ptAnchorCell
.X == -1)
12615
_ptAnchorCell
.X,
12618
_ptAnchorCell
.Y,
12833
if (
_ptAnchorCell
.X == -1 || IsInnerCellOutOfBounds(hti._col, hti._row))
12839
_ptAnchorCell
.X,
12842
_ptAnchorCell
.Y,
13825
if (MultiSelect && isShiftDown &&
_ptAnchorCell
.X > -1 && Columns[
_ptAnchorCell
.X].Selected)
13881
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, hti._col))
13883
SelectColumnRange(
_ptAnchorCell
.X, hti._col, true);
13887
SelectColumnRange(hti._col,
_ptAnchorCell
.X, true);
18112
&&
_ptAnchorCell
.Y > -1
18113
&& (Rows.GetRowState(
_ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
18169
if (hti._row >=
_ptAnchorCell
.Y)
18171
SelectRowRange(
_ptAnchorCell
.Y, hti._row, true);
18175
SelectRowRange(hti._row,
_ptAnchorCell
.Y, true);
20271
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20274
if (_ptCurrentCell.X == -1 ||
_ptAnchorCell
.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20281
_ptAnchorCell
.X,
20284
_ptAnchorCell
.Y,
20404
if (
_ptAnchorCell
.X == -1)
20411
_ptAnchorCell
.X,
20414
_ptAnchorCell
.Y,
20520
if (
_ptAnchorCell
.Y == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20527
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20528
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
20645
if (
_ptAnchorCell
.X == -1)
20651
if (nextVisibleRowIndex >=
_ptAnchorCell
.Y)
20653
SelectRowRange(
_ptAnchorCell
.Y, nextVisibleRowIndex, true);
20657
SelectRowRange(nextVisibleRowIndex,
_ptAnchorCell
.Y, true);
20756
Debug.Assert(
_ptAnchorCell
.Y >= 0);
20757
if (
_ptAnchorCell
.Y == -1 || _ptCurrentCell.Y == -1 || IsRowOutOfBounds(lastVisibleRowIndex))
20766
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
20773
_ptAnchorCell
.X,
20776
_ptAnchorCell
.Y,
20917
if (
_ptAnchorCell
.Y == -1)
20923
if (nextVisibleRowIndex >=
_ptAnchorCell
.Y)
20925
SelectRowRange(
_ptAnchorCell
.Y, nextVisibleRowIndex, true);
20929
SelectRowRange(nextVisibleRowIndex,
_ptAnchorCell
.Y, true);
20943
if (
_ptAnchorCell
.X == -1)
20950
_ptAnchorCell
.X,
20953
_ptAnchorCell
.Y,
21168
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21173
_ptAnchorCell
.X,
21176
_ptAnchorCell
.Y,
21217
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21230
_ptAnchorCell
.X,
21233
_ptAnchorCell
.Y,
21297
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
21339
if (
_ptAnchorCell
.X == -1)
21344
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
21355
if (
_ptAnchorCell
.X == -1)
21361
_ptAnchorCell
.X,
21364
_ptAnchorCell
.Y,
21428
if (
_ptAnchorCell
.Y == -1)
21433
SelectRowRange(
_ptAnchorCell
.Y, lastVisibleRowIndex, true);
21642
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21647
_ptAnchorCell
.X,
21650
_ptAnchorCell
.Y,
21691
if (MultiSelect &&
_ptAnchorCell
.X >= 0)
21697
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, select: true);
21704
_ptAnchorCell
.X,
21707
_ptAnchorCell
.Y,
21771
if (
_ptAnchorCell
.X == -1)
21776
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
21818
if (
_ptAnchorCell
.X == -1)
21823
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
21834
if (
_ptAnchorCell
.X == -1)
21840
_ptAnchorCell
.X,
21843
_ptAnchorCell
.Y,
22212
Debug.Assert(
_ptAnchorCell
.X >= 0);
22215
if (
_ptAnchorCell
.X == -1)
22221
_ptAnchorCell
.X,
22224
_ptAnchorCell
.Y,
22324
if (
_ptAnchorCell
.X == -1)
22329
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, previousVisibleColumnIndex))
22331
SelectColumnRange(
_ptAnchorCell
.X, previousVisibleColumnIndex, true);
22335
SelectColumnRange(previousVisibleColumnIndex,
_ptAnchorCell
.X, true);
22435
if (
_ptAnchorCell
.X == -1)
22440
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, previousVisibleColumnIndex))
22442
SelectColumnRange(
_ptAnchorCell
.X, previousVisibleColumnIndex, true);
22446
SelectColumnRange(previousVisibleColumnIndex,
_ptAnchorCell
.X, true);
22458
if (
_ptAnchorCell
.X == -1)
22464
_ptAnchorCell
.X,
22467
_ptAnchorCell
.Y,
22626
Debug.Assert(
_ptAnchorCell
.X >= 0);
22629
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22635
_ptAnchorCell
.X,
22638
_ptAnchorCell
.Y,
22751
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22757
Debug.Assert(
_ptAnchorCell
.X >= 0);
22758
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
22844
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex))
22849
Debug.Assert(
_ptAnchorCell
.X >= 0);
22853
SelectColumnRange(firstVisibleColumnIndex,
_ptAnchorCell
.X, true);
22860
_ptAnchorCell
.X,
22863
_ptAnchorCell
.Y,
23103
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23106
if (
_ptAnchorCell
.Y == -1)
23112
_ptAnchorCell
.X,
23115
_ptAnchorCell
.Y,
23143
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23144
if (
_ptAnchorCell
.Y == -1)
23149
if (
_ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23151
SelectRowRange(
_ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23155
SelectRowRange(nextScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23179
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23180
if (
_ptAnchorCell
.Y == -1)
23188
if (
_ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23190
SelectRowRange(
_ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23194
SelectRowRange(nextScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23202
_ptAnchorCell
.X,
23205
_ptAnchorCell
.Y,
23362
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23365
if (
_ptAnchorCell
.X == -1)
23371
_ptAnchorCell
.X,
23374
_ptAnchorCell
.Y,
23401
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23402
if (
_ptAnchorCell
.Y == -1)
23407
if (
_ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23409
SelectRowRange(
_ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23413
SelectRowRange(previousScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23437
Debug.Assert(
_ptAnchorCell
.Y >= 0);
23438
if (
_ptAnchorCell
.Y == -1)
23446
if (
_ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23448
SelectRowRange(
_ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23452
SelectRowRange(previousScreenVisibleRowIndex,
_ptAnchorCell
.Y, true);
23460
_ptAnchorCell
.X,
23463
_ptAnchorCell
.Y,
23593
if (
_ptAnchorCell
.X == -1)
23599
_ptAnchorCell
.X,
23602
_ptAnchorCell
.Y,
23702
if (
_ptAnchorCell
.X == -1)
23707
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, nextVisibleColumnIndex))
23709
SelectColumnRange(
_ptAnchorCell
.X, nextVisibleColumnIndex, true);
23713
SelectColumnRange(nextVisibleColumnIndex,
_ptAnchorCell
.X, true);
23813
if (
_ptAnchorCell
.X == -1)
23818
if (Columns.DisplayInOrder(
_ptAnchorCell
.X, nextVisibleColumnIndex))
23820
SelectColumnRange(
_ptAnchorCell
.X, nextVisibleColumnIndex, true);
23824
SelectColumnRange(nextVisibleColumnIndex,
_ptAnchorCell
.X, true);
23836
if (
_ptAnchorCell
.X == -1)
23844
_ptAnchorCell
.X,
23847
_ptAnchorCell
.Y,
24011
Debug.Assert(
_ptAnchorCell
.X >= 0);
24012
if (
_ptAnchorCell
.X == -1)
24020
_ptAnchorCell
.X,
24023
_ptAnchorCell
.Y,
24106
if (
_ptAnchorCell
.X == -1)
24112
Debug.Assert(
_ptAnchorCell
.X >= 0);
24113
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
24194
Debug.Assert(
_ptAnchorCell
.X >= 0);
24195
if (
_ptAnchorCell
.X == -1)
24203
SelectColumnRange(
_ptAnchorCell
.X, lastVisibleColumnIndex, true);
24210
_ptAnchorCell
.X,
24213
_ptAnchorCell
.Y,
24649
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24654
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24658
_ptAnchorCell
.X,
24661
_ptAnchorCell
.Y,
24751
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24752
if (
_ptAnchorCell
.Y == -1)
24760
_ptAnchorCell
.X,
24763
_ptAnchorCell
.Y,
24847
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
24853
Debug.Assert(
_ptAnchorCell
.Y >= 0);
24854
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, true);
24943
if (
_ptAnchorCell
.Y == -1)
24948
if (
_ptAnchorCell
.Y >= previousVisibleRowIndex)
24950
SelectRowRange(previousVisibleRowIndex,
_ptAnchorCell
.Y, true);
24954
SelectRowRange(
_ptAnchorCell
.Y, previousVisibleRowIndex, true);
25031
if (
_ptAnchorCell
.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex))
25036
Debug.Assert(
_ptAnchorCell
.Y >= 0);
25040
SelectRowRange(firstVisibleRowIndex,
_ptAnchorCell
.Y, true);
25047
_ptAnchorCell
.X,
25050
_ptAnchorCell
.Y,
25163
if (
_ptAnchorCell
.Y == -1)
25168
if (
_ptAnchorCell
.Y >= previousVisibleRowIndex)
25170
SelectRowRange(previousVisibleRowIndex,
_ptAnchorCell
.Y, true);
25174
SelectRowRange(
_ptAnchorCell
.Y, previousVisibleRowIndex, true);
25186
if (
_ptAnchorCell
.Y == -1)
25192
_ptAnchorCell
.X,
25195
_ptAnchorCell
.Y,
26695
_ptAnchorCell
.X = dataGridViewColumn.Index;
26696
_ptAnchorCell
.Y = firstVisibleRowIndex;
26700
_ptAnchorCell
.X = -1;
26701
_ptAnchorCell
.Y = -1;
27005
_ptAnchorCell
.X = columnIndex;
27006
_ptAnchorCell
.Y = rowIndex;
27067
_ptAnchorCell
.X = columnIndex;
27068
_ptAnchorCell
.Y = rowIndex;
27162
_ptAnchorCell
.X = -1;
27163
_ptAnchorCell
.Y = -1;