1 write to _ptAnchorCell
System.Windows.Forms (1)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (1)
476_ptAnchorCell = new Point(-1, -1);
220 references to _ptAnchorCell
System.Windows.Forms (220)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (220)
8597if (_ptAnchorCell.Y != -1 8598&& (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0 8635if (_ptAnchorCell.Y != -1 8636&& ((Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0 8689if (_ptAnchorCell.X != -1 8690&& Columns[_ptAnchorCell.X].Frozen 8718if (_ptAnchorCell.X != -1 8719&& (!Columns[_ptAnchorCell.X].Frozen || (_trackColumnEdge != -1 && !Columns[_trackColumnEdge].Frozen)) 8817if (((_ptAnchorCell.Y != -1 && (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0) 8870if (((_ptAnchorCell.X != -1 && !Columns[_ptAnchorCell.X].Frozen) || (_ptCurrentCell.X != -1 && !Columns[_ptCurrentCell.X].Frozen)) 12157if (_ptAnchorCell.X == -1) 12163_ptAnchorCell.X, 12166_ptAnchorCell.Y, 12207if (MultiSelect && isShiftDown && _ptAnchorCell.X > -1 && Columns[_ptAnchorCell.X].Selected) 12254if (Columns.DisplayInOrder(_ptAnchorCell.X, hti._col)) 12256SelectColumnRange(_ptAnchorCell.X, hti._col, true); 12260SelectColumnRange(hti._col, _ptAnchorCell.X, true); 12347if (_ptAnchorCell.X == -1) 12353_ptAnchorCell.X, 12356_ptAnchorCell.Y, 12410&& _ptAnchorCell.Y > -1 && (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 12457if (hti._row >= _ptAnchorCell.Y) 12459SelectRowRange(_ptAnchorCell.Y, hti._row, true); 12463SelectRowRange(hti._row, _ptAnchorCell.Y, true); 12553if (_ptAnchorCell.X == -1) 12559_ptAnchorCell.X, 12562_ptAnchorCell.Y, 12777if (_ptAnchorCell.X == -1 || IsInnerCellOutOfBounds(hti._col, hti._row)) 12783_ptAnchorCell.X, 12786_ptAnchorCell.Y, 13769if (MultiSelect && isShiftDown && _ptAnchorCell.X > -1 && Columns[_ptAnchorCell.X].Selected) 13825if (Columns.DisplayInOrder(_ptAnchorCell.X, hti._col)) 13827SelectColumnRange(_ptAnchorCell.X, hti._col, true); 13831SelectColumnRange(hti._col, _ptAnchorCell.X, true); 18053&& _ptAnchorCell.Y > -1 18054&& (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 18110if (hti._row >= _ptAnchorCell.Y) 18112SelectRowRange(_ptAnchorCell.Y, hti._row, true); 18116SelectRowRange(hti._row, _ptAnchorCell.Y, true); 20215Debug.Assert(_ptAnchorCell.Y >= 0); 20218if (_ptCurrentCell.X == -1 || _ptAnchorCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 20225_ptAnchorCell.X, 20228_ptAnchorCell.Y, 20348if (_ptAnchorCell.X == -1) 20355_ptAnchorCell.X, 20358_ptAnchorCell.Y, 20464if (_ptAnchorCell.Y == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 20471Debug.Assert(_ptAnchorCell.Y >= 0); 20472SelectRowRange(_ptAnchorCell.Y, lastVisibleRowIndex, true); 20589if (_ptAnchorCell.X == -1) 20595if (nextVisibleRowIndex >= _ptAnchorCell.Y) 20597SelectRowRange(_ptAnchorCell.Y, nextVisibleRowIndex, true); 20601SelectRowRange(nextVisibleRowIndex, _ptAnchorCell.Y, true); 20700Debug.Assert(_ptAnchorCell.Y >= 0); 20701if (_ptAnchorCell.Y == -1 || _ptCurrentCell.Y == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 20710SelectRowRange(_ptAnchorCell.Y, lastVisibleRowIndex, true); 20717_ptAnchorCell.X, 20720_ptAnchorCell.Y, 20861if (_ptAnchorCell.Y == -1) 20867if (nextVisibleRowIndex >= _ptAnchorCell.Y) 20869SelectRowRange(_ptAnchorCell.Y, nextVisibleRowIndex, true); 20873SelectRowRange(nextVisibleRowIndex, _ptAnchorCell.Y, true); 20887if (_ptAnchorCell.X == -1) 20894_ptAnchorCell.X, 20897_ptAnchorCell.Y, 21112if (MultiSelect && _ptAnchorCell.X >= 0) 21117_ptAnchorCell.X, 21120_ptAnchorCell.Y, 21161if (MultiSelect && _ptAnchorCell.X >= 0) 21174_ptAnchorCell.X, 21177_ptAnchorCell.Y, 21241SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 21283if (_ptAnchorCell.X == -1) 21288SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 21299if (_ptAnchorCell.X == -1) 21305_ptAnchorCell.X, 21308_ptAnchorCell.Y, 21372if (_ptAnchorCell.Y == -1) 21377SelectRowRange(_ptAnchorCell.Y, lastVisibleRowIndex, true); 21586if (MultiSelect && _ptAnchorCell.X >= 0) 21591_ptAnchorCell.X, 21594_ptAnchorCell.Y, 21635if (MultiSelect && _ptAnchorCell.X >= 0) 21641SelectRowRange(firstVisibleRowIndex, _ptAnchorCell.Y, select: true); 21648_ptAnchorCell.X, 21651_ptAnchorCell.Y, 21715if (_ptAnchorCell.X == -1) 21720SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 21762if (_ptAnchorCell.X == -1) 21767SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 21778if (_ptAnchorCell.X == -1) 21784_ptAnchorCell.X, 21787_ptAnchorCell.Y, 22148Debug.Assert(_ptAnchorCell.X >= 0); 22151if (_ptAnchorCell.X == -1) 22157_ptAnchorCell.X, 22160_ptAnchorCell.Y, 22260if (_ptAnchorCell.X == -1) 22265if (Columns.DisplayInOrder(_ptAnchorCell.X, previousVisibleColumnIndex)) 22267SelectColumnRange(_ptAnchorCell.X, previousVisibleColumnIndex, true); 22271SelectColumnRange(previousVisibleColumnIndex, _ptAnchorCell.X, true); 22371if (_ptAnchorCell.X == -1) 22376if (Columns.DisplayInOrder(_ptAnchorCell.X, previousVisibleColumnIndex)) 22378SelectColumnRange(_ptAnchorCell.X, previousVisibleColumnIndex, true); 22382SelectColumnRange(previousVisibleColumnIndex, _ptAnchorCell.X, true); 22394if (_ptAnchorCell.X == -1) 22400_ptAnchorCell.X, 22403_ptAnchorCell.Y, 22562Debug.Assert(_ptAnchorCell.X >= 0); 22565if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 22571_ptAnchorCell.X, 22574_ptAnchorCell.Y, 22687if (_ptAnchorCell.X == -1 || _ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 22693Debug.Assert(_ptAnchorCell.X >= 0); 22694SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 22780if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 22785Debug.Assert(_ptAnchorCell.X >= 0); 22789SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 22796_ptAnchorCell.X, 22799_ptAnchorCell.Y, 23039Debug.Assert(_ptAnchorCell.Y >= 0); 23042if (_ptAnchorCell.Y == -1) 23048_ptAnchorCell.X, 23051_ptAnchorCell.Y, 23079Debug.Assert(_ptAnchorCell.Y >= 0); 23080if (_ptAnchorCell.Y == -1) 23085if (_ptAnchorCell.Y < nextScreenVisibleRowIndex) 23087SelectRowRange(_ptAnchorCell.Y, nextScreenVisibleRowIndex, true); 23091SelectRowRange(nextScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23115Debug.Assert(_ptAnchorCell.Y >= 0); 23116if (_ptAnchorCell.Y == -1) 23124if (_ptAnchorCell.Y < nextScreenVisibleRowIndex) 23126SelectRowRange(_ptAnchorCell.Y, nextScreenVisibleRowIndex, true); 23130SelectRowRange(nextScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23138_ptAnchorCell.X, 23141_ptAnchorCell.Y, 23298Debug.Assert(_ptAnchorCell.Y >= 0); 23301if (_ptAnchorCell.X == -1) 23307_ptAnchorCell.X, 23310_ptAnchorCell.Y, 23337Debug.Assert(_ptAnchorCell.Y >= 0); 23338if (_ptAnchorCell.Y == -1) 23343if (_ptAnchorCell.Y < previousScreenVisibleRowIndex) 23345SelectRowRange(_ptAnchorCell.Y, previousScreenVisibleRowIndex, true); 23349SelectRowRange(previousScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23373Debug.Assert(_ptAnchorCell.Y >= 0); 23374if (_ptAnchorCell.Y == -1) 23382if (_ptAnchorCell.Y < previousScreenVisibleRowIndex) 23384SelectRowRange(_ptAnchorCell.Y, previousScreenVisibleRowIndex, true); 23388SelectRowRange(previousScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23396_ptAnchorCell.X, 23399_ptAnchorCell.Y, 23529if (_ptAnchorCell.X == -1) 23535_ptAnchorCell.X, 23538_ptAnchorCell.Y, 23638if (_ptAnchorCell.X == -1) 23643if (Columns.DisplayInOrder(_ptAnchorCell.X, nextVisibleColumnIndex)) 23645SelectColumnRange(_ptAnchorCell.X, nextVisibleColumnIndex, true); 23649SelectColumnRange(nextVisibleColumnIndex, _ptAnchorCell.X, true); 23749if (_ptAnchorCell.X == -1) 23754if (Columns.DisplayInOrder(_ptAnchorCell.X, nextVisibleColumnIndex)) 23756SelectColumnRange(_ptAnchorCell.X, nextVisibleColumnIndex, true); 23760SelectColumnRange(nextVisibleColumnIndex, _ptAnchorCell.X, true); 23772if (_ptAnchorCell.X == -1) 23780_ptAnchorCell.X, 23783_ptAnchorCell.Y, 23947Debug.Assert(_ptAnchorCell.X >= 0); 23948if (_ptAnchorCell.X == -1) 23956_ptAnchorCell.X, 23959_ptAnchorCell.Y, 24042if (_ptAnchorCell.X == -1) 24048Debug.Assert(_ptAnchorCell.X >= 0); 24049SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 24130Debug.Assert(_ptAnchorCell.X >= 0); 24131if (_ptAnchorCell.X == -1) 24139SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 24146_ptAnchorCell.X, 24149_ptAnchorCell.Y, 24585if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex)) 24590Debug.Assert(_ptAnchorCell.Y >= 0); 24594_ptAnchorCell.X, 24597_ptAnchorCell.Y, 24687Debug.Assert(_ptAnchorCell.Y >= 0); 24688if (_ptAnchorCell.Y == -1) 24696_ptAnchorCell.X, 24699_ptAnchorCell.Y, 24783if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex)) 24789Debug.Assert(_ptAnchorCell.Y >= 0); 24790SelectRowRange(firstVisibleRowIndex, _ptAnchorCell.Y, true); 24879if (_ptAnchorCell.Y == -1) 24884if (_ptAnchorCell.Y >= previousVisibleRowIndex) 24886SelectRowRange(previousVisibleRowIndex, _ptAnchorCell.Y, true); 24890SelectRowRange(_ptAnchorCell.Y, previousVisibleRowIndex, true); 24967if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex)) 24972Debug.Assert(_ptAnchorCell.Y >= 0); 24976SelectRowRange(firstVisibleRowIndex, _ptAnchorCell.Y, true); 24983_ptAnchorCell.X, 24986_ptAnchorCell.Y, 25099if (_ptAnchorCell.Y == -1) 25104if (_ptAnchorCell.Y >= previousVisibleRowIndex) 25106SelectRowRange(previousVisibleRowIndex, _ptAnchorCell.Y, true); 25110SelectRowRange(_ptAnchorCell.Y, previousVisibleRowIndex, true); 25122if (_ptAnchorCell.Y == -1) 25128_ptAnchorCell.X, 25131_ptAnchorCell.Y, 26631_ptAnchorCell.X = dataGridViewColumn.Index; 26632_ptAnchorCell.Y = firstVisibleRowIndex; 26636_ptAnchorCell.X = -1; 26637_ptAnchorCell.Y = -1; 26941_ptAnchorCell.X = columnIndex; 26942_ptAnchorCell.Y = rowIndex; 27003_ptAnchorCell.X = columnIndex; 27004_ptAnchorCell.Y = rowIndex; 27097_ptAnchorCell.X = -1; 27098_ptAnchorCell.Y = -1;