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