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