1 write to ptAnchorCell
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridView.cs (1)
518
this.
ptAnchorCell
= new Point(-1, -1);
220 references to ptAnchorCell
System.Windows.Forms (220)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (220)
8672
if (this.
ptAnchorCell
.Y != -1 &&
8673
(this.Rows.GetRowState(this.
ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) != 0 &&
8707
if (this.
ptAnchorCell
.Y != -1 &&
8708
((this.Rows.GetRowState(this.
ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) == 0 ||
8769
if (this.
ptAnchorCell
.X != -1 &&
8770
this.Columns[this.
ptAnchorCell
.X].Frozen &&
8804
if (this.
ptAnchorCell
.X != -1 &&
8805
(!this.Columns[this.
ptAnchorCell
.X].Frozen ||
8888
(this.
ptAnchorCell
.Y != -1 && (this.Rows.GetRowState(this.
ptAnchorCell
.Y) & DataGridViewElementStates.Frozen) == 0)
8948
(this.
ptAnchorCell
.X != -1 && !this.Columns[this.
ptAnchorCell
.X].Frozen)
12523
if (this.
ptAnchorCell
.X == -1)
12527
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, hti.col,
12528
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, hti.row);
12562
this.
ptAnchorCell
.X > -1 &&
12563
this.Columns[this.
ptAnchorCell
.X].Selected)
12606
if (this.Columns.DisplayInOrder(this.
ptAnchorCell
.X, hti.col))
12608
SelectColumnRange(this.
ptAnchorCell
.X, hti.col, true);
12612
SelectColumnRange(hti.col, this.
ptAnchorCell
.X, true);
12688
if (this.
ptAnchorCell
.X == -1)
12692
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, hti.col,
12693
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, hti.row);
12739
this.
ptAnchorCell
.Y > -1 && (this.Rows.GetRowState(this.
ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
12783
if (hti.row >= this.
ptAnchorCell
.Y)
12785
SelectRowRange(this.
ptAnchorCell
.Y, hti.row, true);
12789
SelectRowRange(hti.row, this.
ptAnchorCell
.Y, true);
12868
if (this.
ptAnchorCell
.X == -1)
12872
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, hti.col,
12873
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, hti.row);
13145
if (this.
ptAnchorCell
.X == -1 || IsInnerCellOutOfBounds(hti.col, hti.row))
13149
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, hti.col,
13150
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, hti.row);
14236
this.
ptAnchorCell
.X > -1 &&
14237
this.Columns[this.
ptAnchorCell
.X].Selected)
14288
if (this.Columns.DisplayInOrder(this.
ptAnchorCell
.X, hti.col))
14290
SelectColumnRange(this.
ptAnchorCell
.X, hti.col, true);
14294
SelectColumnRange(hti.col, this.
ptAnchorCell
.X, true);
18516
this.
ptAnchorCell
.Y > -1 &&
18517
(this.Rows.GetRowState(this.
ptAnchorCell
.Y) & DataGridViewElementStates.Selected) != 0)
18569
if (hti.row >= this.
ptAnchorCell
.Y)
18571
SelectRowRange(this.
ptAnchorCell
.Y, hti.row, true);
18575
SelectRowRange(hti.row, this.
ptAnchorCell
.Y, true);
20764
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
20768
if (this.ptCurrentCell.X == -1 || this.
ptAnchorCell
.X == -1 ||
20774
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
20775
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, lastVisibleRowIndex);
20886
if (this.
ptAnchorCell
.X == -1)
20891
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
20892
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, nextVisibleRowIndex);
20987
if (this.
ptAnchorCell
.Y == -1 || this.ptCurrentCell.X == -1 ||
20994
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
20995
SelectRowRange(this.
ptAnchorCell
.Y, lastVisibleRowIndex, true);
21103
if (this.
ptAnchorCell
.X == -1)
21108
if (nextVisibleRowIndex >= this.
ptAnchorCell
.Y)
21110
SelectRowRange(this.
ptAnchorCell
.Y, nextVisibleRowIndex, true);
21114
SelectRowRange(nextVisibleRowIndex, this.
ptAnchorCell
.Y, true);
21205
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
21206
if (this.
ptAnchorCell
.Y == -1 || this.ptCurrentCell.Y == -1 ||
21215
SelectRowRange(this.
ptAnchorCell
.Y, lastVisibleRowIndex, true);
21223
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
21224
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, lastVisibleRowIndex);
21351
if (this.
ptAnchorCell
.Y == -1)
21356
if (nextVisibleRowIndex >= this.
ptAnchorCell
.Y)
21358
SelectRowRange(this.
ptAnchorCell
.Y, nextVisibleRowIndex, true);
21362
SelectRowRange(nextVisibleRowIndex, this.
ptAnchorCell
.Y, true);
21377
if (this.
ptAnchorCell
.X == -1)
21382
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
21383
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, nextVisibleRowIndex);
21582
if (this.MultiSelect && this.
ptAnchorCell
.X >= 0)
21586
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, lastVisibleColumnIndex,
21587
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, lastVisibleRowIndex);
21626
if (this.MultiSelect && this.
ptAnchorCell
.X >= 0)
21638
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, lastVisibleColumnIndex,
21639
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, lastVisibleRowIndex);
21697
SelectColumnRange(this.
ptAnchorCell
.X, lastVisibleColumnIndex, true);
21736
if (this.
ptAnchorCell
.X == -1)
21740
SelectColumnRange(this.
ptAnchorCell
.X, lastVisibleColumnIndex, true);
21750
if (this.
ptAnchorCell
.X == -1)
21754
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, lastVisibleColumnIndex,
21755
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, lastVisibleRowIndex);
21812
if (this.
ptAnchorCell
.Y == -1)
21816
SelectRowRange(this.
ptAnchorCell
.Y, lastVisibleRowIndex, true);
22036
if (this.MultiSelect && this.
ptAnchorCell
.X >= 0)
22040
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, firstVisibleColumnIndex,
22041
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, firstVisibleRowIndex);
22080
if (this.MultiSelect && this.
ptAnchorCell
.X >= 0)
22086
SelectRowRange(firstVisibleRowIndex, this.
ptAnchorCell
.Y, true);
22092
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, firstVisibleColumnIndex,
22093
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, firstVisibleRowIndex);
22151
if (this.
ptAnchorCell
.X == -1)
22155
SelectColumnRange(firstVisibleColumnIndex, this.
ptAnchorCell
.X, true);
22194
if (this.
ptAnchorCell
.X == -1)
22198
SelectColumnRange(firstVisibleColumnIndex, this.
ptAnchorCell
.X, true);
22208
if (this.
ptAnchorCell
.X == -1)
22212
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, firstVisibleColumnIndex,
22213
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, firstVisibleRowIndex);
22570
Debug.Assert(this.
ptAnchorCell
.X >= 0);
22574
if (this.
ptAnchorCell
.X == -1)
22578
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, previousVisibleColumnIndex,
22579
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, oldEdgeRowIndex);
22667
if (this.
ptAnchorCell
.X == -1)
22671
if (this.Columns.DisplayInOrder(this.
ptAnchorCell
.X, previousVisibleColumnIndex))
22673
SelectColumnRange(this.
ptAnchorCell
.X, previousVisibleColumnIndex, true);
22677
SelectColumnRange(previousVisibleColumnIndex, this.
ptAnchorCell
.X, true);
22767
if (this.
ptAnchorCell
.X == -1)
22771
if (this.Columns.DisplayInOrder(this.
ptAnchorCell
.X, previousVisibleColumnIndex))
22773
SelectColumnRange(this.
ptAnchorCell
.X, previousVisibleColumnIndex, true);
22777
SelectColumnRange(previousVisibleColumnIndex, this.
ptAnchorCell
.X, true);
22789
if (this.
ptAnchorCell
.X == -1)
22793
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, previousVisibleColumnIndex,
22794
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, oldEdgeRowIndex);
22937
Debug.Assert(this.
ptAnchorCell
.X >= 0);
22941
if (this.
ptAnchorCell
.X == -1 || this.ptCurrentCell.X == -1 ||
22946
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, firstVisibleColumnIndex,
22947
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, oldEdgeRowIndex);
23026
if (this.
ptAnchorCell
.X == -1 || this.ptCurrentCell.Y == -1 ||
23032
Debug.Assert(this.
ptAnchorCell
.X >= 0);
23033
SelectColumnRange(firstVisibleColumnIndex, this.
ptAnchorCell
.X, true);
23111
if (this.
ptAnchorCell
.X == -1 || this.ptCurrentCell.X == -1 ||
23116
Debug.Assert(this.
ptAnchorCell
.X >= 0);
23120
SelectColumnRange(firstVisibleColumnIndex, this.
ptAnchorCell
.X, true);
23128
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, firstVisibleColumnIndex,
23129
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, oldEdgeRowIndex);
23351
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
23354
if (this.
ptAnchorCell
.Y == -1)
23358
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
23359
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, nextScreenVisibleRowIndex);
23382
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
23383
if (this.
ptAnchorCell
.Y == -1)
23387
if (this.
ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23389
SelectRowRange(this.
ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23393
SelectRowRange(nextScreenVisibleRowIndex, this.
ptAnchorCell
.Y, true);
23415
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
23416
if (this.
ptAnchorCell
.Y == -1)
23423
if (this.
ptAnchorCell
.Y < nextScreenVisibleRowIndex)
23425
SelectRowRange(this.
ptAnchorCell
.Y, nextScreenVisibleRowIndex, true);
23429
SelectRowRange(nextScreenVisibleRowIndex, this.
ptAnchorCell
.Y, true);
23436
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
23437
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, nextScreenVisibleRowIndex);
23590
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
23593
if (this.
ptAnchorCell
.X == -1)
23597
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
23598
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, previousScreenVisibleRowIndex);
23621
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
23622
if (this.
ptAnchorCell
.Y == -1)
23626
if (this.
ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23628
SelectRowRange(this.
ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23632
SelectRowRange(previousScreenVisibleRowIndex, this.
ptAnchorCell
.Y, true);
23654
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
23655
if (this.
ptAnchorCell
.Y == -1)
23662
if (this.
ptAnchorCell
.Y < previousScreenVisibleRowIndex)
23664
SelectRowRange(this.
ptAnchorCell
.Y, previousScreenVisibleRowIndex, true);
23668
SelectRowRange(previousScreenVisibleRowIndex, this.
ptAnchorCell
.Y, true);
23675
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
23676
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, previousScreenVisibleRowIndex);
23812
if (this.
ptAnchorCell
.X == -1)
23816
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, nextVisibleColumnIndex,
23817
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, oldEdgeRowIndex);
23905
if (this.
ptAnchorCell
.X == -1)
23909
if (this.Columns.DisplayInOrder(this.
ptAnchorCell
.X, nextVisibleColumnIndex))
23911
SelectColumnRange(this.
ptAnchorCell
.X, nextVisibleColumnIndex, true);
23915
SelectColumnRange(nextVisibleColumnIndex, this.
ptAnchorCell
.X, true);
24005
if (this.
ptAnchorCell
.X == -1)
24009
if (this.Columns.DisplayInOrder(this.
ptAnchorCell
.X, nextVisibleColumnIndex))
24011
SelectColumnRange(this.
ptAnchorCell
.X, nextVisibleColumnIndex, true);
24015
SelectColumnRange(nextVisibleColumnIndex, this.
ptAnchorCell
.X, true);
24027
if (this.
ptAnchorCell
.X == -1)
24034
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, nextVisibleColumnIndex,
24035
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, oldEdgeRowIndex);
24181
Debug.Assert(this.
ptAnchorCell
.X >= 0);
24182
if (this.
ptAnchorCell
.X == -1)
24188
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, lastVisibleColumnIndex,
24189
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, oldEdgeRowIndex);
24263
if (this.
ptAnchorCell
.X == -1)
24268
Debug.Assert(this.
ptAnchorCell
.X >= 0);
24269
SelectColumnRange(this.
ptAnchorCell
.X, lastVisibleColumnIndex, true);
24343
Debug.Assert(this.
ptAnchorCell
.X >= 0);
24344
if (this.
ptAnchorCell
.X == -1)
24351
SelectColumnRange(this.
ptAnchorCell
.X, lastVisibleColumnIndex, true);
24359
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, lastVisibleColumnIndex,
24360
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, oldEdgeRowIndex);
24791
if (this.
ptAnchorCell
.X == -1 || this.ptCurrentCell.X == -1 ||
24797
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
24801
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
24802
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, firstVisibleRowIndex);
24889
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
24890
if (this.
ptAnchorCell
.Y == -1)
24897
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
24898
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, previousVisibleRowIndex);
24973
if (this.
ptAnchorCell
.X == -1 || this.ptCurrentCell.X == -1 ||
24979
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
24980
SelectRowRange(firstVisibleRowIndex, this.
ptAnchorCell
.Y, true);
25067
if (this.
ptAnchorCell
.Y == -1)
25071
if (this.
ptAnchorCell
.Y >= previousVisibleRowIndex)
25073
SelectRowRange(previousVisibleRowIndex, this.
ptAnchorCell
.Y, true);
25077
SelectRowRange(this.
ptAnchorCell
.Y, previousVisibleRowIndex, true);
25152
if (this.
ptAnchorCell
.X == -1 || this.ptCurrentCell.X == -1 ||
25157
Debug.Assert(this.
ptAnchorCell
.Y >= 0);
25161
SelectRowRange(firstVisibleRowIndex, this.
ptAnchorCell
.Y, true);
25169
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
25170
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, firstVisibleRowIndex);
25276
if (this.
ptAnchorCell
.Y == -1)
25280
if (this.
ptAnchorCell
.Y >= previousVisibleRowIndex)
25282
SelectRowRange(previousVisibleRowIndex, this.
ptAnchorCell
.Y, true);
25286
SelectRowRange(this.
ptAnchorCell
.Y, previousVisibleRowIndex, true);
25298
if (this.
ptAnchorCell
.Y == -1)
25302
UpdateSelectedCellsBlock(this.
ptAnchorCell
.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex,
25303
this.
ptAnchorCell
.Y, ref oldEdgeRowIndex, previousVisibleRowIndex);
26717
this.
ptAnchorCell
.X = dataGridViewColumn.Index;
26718
this.
ptAnchorCell
.Y = firstVisibleRowIndex;
26722
this.
ptAnchorCell
.X = -1;
26723
this.
ptAnchorCell
.Y = -1;
27000
this.
ptAnchorCell
.X = columnIndex;
27001
this.
ptAnchorCell
.Y = rowIndex;
27065
this.
ptAnchorCell
.X = columnIndex;
27066
this.
ptAnchorCell
.Y = rowIndex;
27143
this.
ptAnchorCell
.X = -1;
27144
this.
ptAnchorCell
.Y = -1;