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)
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); 18050&& _ptAnchorCell.Y > -1 18051&& (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 18107if (hti._row >= _ptAnchorCell.Y) 18109SelectRowRange(_ptAnchorCell.Y, hti._row, true); 18113SelectRowRange(hti._row, _ptAnchorCell.Y, true); 20209Debug.Assert(_ptAnchorCell.Y >= 0); 20212if (_ptCurrentCell.X == -1 || _ptAnchorCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 20219_ptAnchorCell.X, 20222_ptAnchorCell.Y, 20342if (_ptAnchorCell.X == -1) 20349_ptAnchorCell.X, 20352_ptAnchorCell.Y, 20458if (_ptAnchorCell.Y == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 20465Debug.Assert(_ptAnchorCell.Y >= 0); 20466SelectRowRange(_ptAnchorCell.Y, lastVisibleRowIndex, true); 20583if (_ptAnchorCell.X == -1) 20589if (nextVisibleRowIndex >= _ptAnchorCell.Y) 20591SelectRowRange(_ptAnchorCell.Y, nextVisibleRowIndex, true); 20595SelectRowRange(nextVisibleRowIndex, _ptAnchorCell.Y, true); 20694Debug.Assert(_ptAnchorCell.Y >= 0); 20695if (_ptAnchorCell.Y == -1 || _ptCurrentCell.Y == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 20704SelectRowRange(_ptAnchorCell.Y, lastVisibleRowIndex, true); 20711_ptAnchorCell.X, 20714_ptAnchorCell.Y, 20855if (_ptAnchorCell.Y == -1) 20861if (nextVisibleRowIndex >= _ptAnchorCell.Y) 20863SelectRowRange(_ptAnchorCell.Y, nextVisibleRowIndex, true); 20867SelectRowRange(nextVisibleRowIndex, _ptAnchorCell.Y, true); 20881if (_ptAnchorCell.X == -1) 20888_ptAnchorCell.X, 20891_ptAnchorCell.Y, 21106if (MultiSelect && _ptAnchorCell.X >= 0) 21111_ptAnchorCell.X, 21114_ptAnchorCell.Y, 21155if (MultiSelect && _ptAnchorCell.X >= 0) 21168_ptAnchorCell.X, 21171_ptAnchorCell.Y, 21235SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 21277if (_ptAnchorCell.X == -1) 21282SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 21293if (_ptAnchorCell.X == -1) 21299_ptAnchorCell.X, 21302_ptAnchorCell.Y, 21366if (_ptAnchorCell.Y == -1) 21371SelectRowRange(_ptAnchorCell.Y, lastVisibleRowIndex, true); 21580if (MultiSelect && _ptAnchorCell.X >= 0) 21585_ptAnchorCell.X, 21588_ptAnchorCell.Y, 21629if (MultiSelect && _ptAnchorCell.X >= 0) 21635SelectRowRange(firstVisibleRowIndex, _ptAnchorCell.Y, select: true); 21642_ptAnchorCell.X, 21645_ptAnchorCell.Y, 21709if (_ptAnchorCell.X == -1) 21714SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 21756if (_ptAnchorCell.X == -1) 21761SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 21772if (_ptAnchorCell.X == -1) 21778_ptAnchorCell.X, 21781_ptAnchorCell.Y, 22142Debug.Assert(_ptAnchorCell.X >= 0); 22145if (_ptAnchorCell.X == -1) 22151_ptAnchorCell.X, 22154_ptAnchorCell.Y, 22254if (_ptAnchorCell.X == -1) 22259if (Columns.DisplayInOrder(_ptAnchorCell.X, previousVisibleColumnIndex)) 22261SelectColumnRange(_ptAnchorCell.X, previousVisibleColumnIndex, true); 22265SelectColumnRange(previousVisibleColumnIndex, _ptAnchorCell.X, true); 22365if (_ptAnchorCell.X == -1) 22370if (Columns.DisplayInOrder(_ptAnchorCell.X, previousVisibleColumnIndex)) 22372SelectColumnRange(_ptAnchorCell.X, previousVisibleColumnIndex, true); 22376SelectColumnRange(previousVisibleColumnIndex, _ptAnchorCell.X, true); 22388if (_ptAnchorCell.X == -1) 22394_ptAnchorCell.X, 22397_ptAnchorCell.Y, 22556Debug.Assert(_ptAnchorCell.X >= 0); 22559if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 22565_ptAnchorCell.X, 22568_ptAnchorCell.Y, 22681if (_ptAnchorCell.X == -1 || _ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 22687Debug.Assert(_ptAnchorCell.X >= 0); 22688SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 22774if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 22779Debug.Assert(_ptAnchorCell.X >= 0); 22783SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 22790_ptAnchorCell.X, 22793_ptAnchorCell.Y, 23033Debug.Assert(_ptAnchorCell.Y >= 0); 23036if (_ptAnchorCell.Y == -1) 23042_ptAnchorCell.X, 23045_ptAnchorCell.Y, 23073Debug.Assert(_ptAnchorCell.Y >= 0); 23074if (_ptAnchorCell.Y == -1) 23079if (_ptAnchorCell.Y < nextScreenVisibleRowIndex) 23081SelectRowRange(_ptAnchorCell.Y, nextScreenVisibleRowIndex, true); 23085SelectRowRange(nextScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23109Debug.Assert(_ptAnchorCell.Y >= 0); 23110if (_ptAnchorCell.Y == -1) 23118if (_ptAnchorCell.Y < nextScreenVisibleRowIndex) 23120SelectRowRange(_ptAnchorCell.Y, nextScreenVisibleRowIndex, true); 23124SelectRowRange(nextScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23132_ptAnchorCell.X, 23135_ptAnchorCell.Y, 23292Debug.Assert(_ptAnchorCell.Y >= 0); 23295if (_ptAnchorCell.X == -1) 23301_ptAnchorCell.X, 23304_ptAnchorCell.Y, 23331Debug.Assert(_ptAnchorCell.Y >= 0); 23332if (_ptAnchorCell.Y == -1) 23337if (_ptAnchorCell.Y < previousScreenVisibleRowIndex) 23339SelectRowRange(_ptAnchorCell.Y, previousScreenVisibleRowIndex, true); 23343SelectRowRange(previousScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23367Debug.Assert(_ptAnchorCell.Y >= 0); 23368if (_ptAnchorCell.Y == -1) 23376if (_ptAnchorCell.Y < previousScreenVisibleRowIndex) 23378SelectRowRange(_ptAnchorCell.Y, previousScreenVisibleRowIndex, true); 23382SelectRowRange(previousScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23390_ptAnchorCell.X, 23393_ptAnchorCell.Y, 23523if (_ptAnchorCell.X == -1) 23529_ptAnchorCell.X, 23532_ptAnchorCell.Y, 23632if (_ptAnchorCell.X == -1) 23637if (Columns.DisplayInOrder(_ptAnchorCell.X, nextVisibleColumnIndex)) 23639SelectColumnRange(_ptAnchorCell.X, nextVisibleColumnIndex, true); 23643SelectColumnRange(nextVisibleColumnIndex, _ptAnchorCell.X, true); 23743if (_ptAnchorCell.X == -1) 23748if (Columns.DisplayInOrder(_ptAnchorCell.X, nextVisibleColumnIndex)) 23750SelectColumnRange(_ptAnchorCell.X, nextVisibleColumnIndex, true); 23754SelectColumnRange(nextVisibleColumnIndex, _ptAnchorCell.X, true); 23766if (_ptAnchorCell.X == -1) 23774_ptAnchorCell.X, 23777_ptAnchorCell.Y, 23941Debug.Assert(_ptAnchorCell.X >= 0); 23942if (_ptAnchorCell.X == -1) 23950_ptAnchorCell.X, 23953_ptAnchorCell.Y, 24036if (_ptAnchorCell.X == -1) 24042Debug.Assert(_ptAnchorCell.X >= 0); 24043SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 24124Debug.Assert(_ptAnchorCell.X >= 0); 24125if (_ptAnchorCell.X == -1) 24133SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 24140_ptAnchorCell.X, 24143_ptAnchorCell.Y, 24579if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex)) 24584Debug.Assert(_ptAnchorCell.Y >= 0); 24588_ptAnchorCell.X, 24591_ptAnchorCell.Y, 24681Debug.Assert(_ptAnchorCell.Y >= 0); 24682if (_ptAnchorCell.Y == -1) 24690_ptAnchorCell.X, 24693_ptAnchorCell.Y, 24777if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex)) 24783Debug.Assert(_ptAnchorCell.Y >= 0); 24784SelectRowRange(firstVisibleRowIndex, _ptAnchorCell.Y, true); 24873if (_ptAnchorCell.Y == -1) 24878if (_ptAnchorCell.Y >= previousVisibleRowIndex) 24880SelectRowRange(previousVisibleRowIndex, _ptAnchorCell.Y, true); 24884SelectRowRange(_ptAnchorCell.Y, previousVisibleRowIndex, true); 24961if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex)) 24966Debug.Assert(_ptAnchorCell.Y >= 0); 24970SelectRowRange(firstVisibleRowIndex, _ptAnchorCell.Y, true); 24977_ptAnchorCell.X, 24980_ptAnchorCell.Y, 25093if (_ptAnchorCell.Y == -1) 25098if (_ptAnchorCell.Y >= previousVisibleRowIndex) 25100SelectRowRange(previousVisibleRowIndex, _ptAnchorCell.Y, true); 25104SelectRowRange(_ptAnchorCell.Y, previousVisibleRowIndex, true); 25116if (_ptAnchorCell.Y == -1) 25122_ptAnchorCell.X, 25125_ptAnchorCell.Y, 26625_ptAnchorCell.X = dataGridViewColumn.Index; 26626_ptAnchorCell.Y = firstVisibleRowIndex; 26630_ptAnchorCell.X = -1; 26631_ptAnchorCell.Y = -1; 26935_ptAnchorCell.X = columnIndex; 26936_ptAnchorCell.Y = rowIndex; 26997_ptAnchorCell.X = columnIndex; 26998_ptAnchorCell.Y = rowIndex; 27092_ptAnchorCell.X = -1; 27093_ptAnchorCell.Y = -1;