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)
8859if (_ptAnchorCell.Y != -1 8860&& (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0 8897if (_ptAnchorCell.Y != -1 8898&& ((Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0 8965if (_ptAnchorCell.X != -1 8966&& Columns[_ptAnchorCell.X].Frozen 9002if (_ptAnchorCell.X != -1 9003&& (!Columns[_ptAnchorCell.X].Frozen || (_trackColumnEdge != -1 && !Columns[_trackColumnEdge].Frozen)) 9101if (((_ptAnchorCell.Y != -1 && (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0) 9154if (((_ptAnchorCell.X != -1 && !Columns[_ptAnchorCell.X].Frozen) || (_ptCurrentCell.X != -1 && !Columns[_ptCurrentCell.X].Frozen)) 12569if (_ptAnchorCell.X == -1) 12575_ptAnchorCell.X, 12578_ptAnchorCell.Y, 12619if (MultiSelect && isShiftDown && _ptAnchorCell.X > -1 && Columns[_ptAnchorCell.X].Selected) 12666if (Columns.DisplayInOrder(_ptAnchorCell.X, hti._col)) 12668SelectColumnRange(_ptAnchorCell.X, hti._col, true); 12672SelectColumnRange(hti._col, _ptAnchorCell.X, true); 12759if (_ptAnchorCell.X == -1) 12765_ptAnchorCell.X, 12768_ptAnchorCell.Y, 12822&& _ptAnchorCell.Y > -1 && (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 12869if (hti._row >= _ptAnchorCell.Y) 12871SelectRowRange(_ptAnchorCell.Y, hti._row, true); 12875SelectRowRange(hti._row, _ptAnchorCell.Y, true); 12965if (_ptAnchorCell.X == -1) 12971_ptAnchorCell.X, 12974_ptAnchorCell.Y, 13185if (_ptAnchorCell.X == -1 || IsInnerCellOutOfBounds(hti._col, hti._row)) 13191_ptAnchorCell.X, 13194_ptAnchorCell.Y, 14177if (MultiSelect && isShiftDown && _ptAnchorCell.X > -1 && Columns[_ptAnchorCell.X].Selected) 14233if (Columns.DisplayInOrder(_ptAnchorCell.X, hti._col)) 14235SelectColumnRange(_ptAnchorCell.X, hti._col, true); 14239SelectColumnRange(hti._col, _ptAnchorCell.X, true); 18483&& _ptAnchorCell.Y > -1 18484&& (Rows.GetRowState(_ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 18540if (hti._row >= _ptAnchorCell.Y) 18542SelectRowRange(_ptAnchorCell.Y, hti._row, true); 18546SelectRowRange(hti._row, _ptAnchorCell.Y, true); 20661Debug.Assert(_ptAnchorCell.Y >= 0); 20664if (_ptCurrentCell.X == -1 || _ptAnchorCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 20671_ptAnchorCell.X, 20674_ptAnchorCell.Y, 20794if (_ptAnchorCell.X == -1) 20801_ptAnchorCell.X, 20804_ptAnchorCell.Y, 20910if (_ptAnchorCell.Y == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 20917Debug.Assert(_ptAnchorCell.Y >= 0); 20918SelectRowRange(_ptAnchorCell.Y, lastVisibleRowIndex, true); 21035if (_ptAnchorCell.X == -1) 21041if (nextVisibleRowIndex >= _ptAnchorCell.Y) 21043SelectRowRange(_ptAnchorCell.Y, nextVisibleRowIndex, true); 21047SelectRowRange(nextVisibleRowIndex, _ptAnchorCell.Y, true); 21146Debug.Assert(_ptAnchorCell.Y >= 0); 21147if (_ptAnchorCell.Y == -1 || _ptCurrentCell.Y == -1 || IsRowOutOfBounds(lastVisibleRowIndex)) 21156SelectRowRange(_ptAnchorCell.Y, lastVisibleRowIndex, true); 21163_ptAnchorCell.X, 21166_ptAnchorCell.Y, 21307if (_ptAnchorCell.Y == -1) 21313if (nextVisibleRowIndex >= _ptAnchorCell.Y) 21315SelectRowRange(_ptAnchorCell.Y, nextVisibleRowIndex, true); 21319SelectRowRange(nextVisibleRowIndex, _ptAnchorCell.Y, true); 21333if (_ptAnchorCell.X == -1) 21340_ptAnchorCell.X, 21343_ptAnchorCell.Y, 21558if (MultiSelect && _ptAnchorCell.X >= 0) 21563_ptAnchorCell.X, 21566_ptAnchorCell.Y, 21607if (MultiSelect && _ptAnchorCell.X >= 0) 21620_ptAnchorCell.X, 21623_ptAnchorCell.Y, 21687SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 21729if (_ptAnchorCell.X == -1) 21734SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 21745if (_ptAnchorCell.X == -1) 21751_ptAnchorCell.X, 21754_ptAnchorCell.Y, 21818if (_ptAnchorCell.Y == -1) 21823SelectRowRange(_ptAnchorCell.Y, lastVisibleRowIndex, true); 22032if (MultiSelect && _ptAnchorCell.X >= 0) 22037_ptAnchorCell.X, 22040_ptAnchorCell.Y, 22081if (MultiSelect && _ptAnchorCell.X >= 0) 22087SelectRowRange(firstVisibleRowIndex, _ptAnchorCell.Y, select: true); 22094_ptAnchorCell.X, 22097_ptAnchorCell.Y, 22161if (_ptAnchorCell.X == -1) 22166SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 22208if (_ptAnchorCell.X == -1) 22213SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 22224if (_ptAnchorCell.X == -1) 22230_ptAnchorCell.X, 22233_ptAnchorCell.Y, 22607Debug.Assert(_ptAnchorCell.X >= 0); 22610if (_ptAnchorCell.X == -1) 22616_ptAnchorCell.X, 22619_ptAnchorCell.Y, 22719if (_ptAnchorCell.X == -1) 22724if (Columns.DisplayInOrder(_ptAnchorCell.X, previousVisibleColumnIndex)) 22726SelectColumnRange(_ptAnchorCell.X, previousVisibleColumnIndex, true); 22730SelectColumnRange(previousVisibleColumnIndex, _ptAnchorCell.X, true); 22830if (_ptAnchorCell.X == -1) 22835if (Columns.DisplayInOrder(_ptAnchorCell.X, previousVisibleColumnIndex)) 22837SelectColumnRange(_ptAnchorCell.X, previousVisibleColumnIndex, true); 22841SelectColumnRange(previousVisibleColumnIndex, _ptAnchorCell.X, true); 22853if (_ptAnchorCell.X == -1) 22859_ptAnchorCell.X, 22862_ptAnchorCell.Y, 23021Debug.Assert(_ptAnchorCell.X >= 0); 23024if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 23030_ptAnchorCell.X, 23033_ptAnchorCell.Y, 23146if (_ptAnchorCell.X == -1 || _ptCurrentCell.Y == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 23152Debug.Assert(_ptAnchorCell.X >= 0); 23153SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 23239if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsColumnOutOfBounds(firstVisibleColumnIndex)) 23244Debug.Assert(_ptAnchorCell.X >= 0); 23248SelectColumnRange(firstVisibleColumnIndex, _ptAnchorCell.X, true); 23255_ptAnchorCell.X, 23258_ptAnchorCell.Y, 23495Debug.Assert(_ptAnchorCell.Y >= 0); 23498if (_ptAnchorCell.Y == -1) 23504_ptAnchorCell.X, 23507_ptAnchorCell.Y, 23535Debug.Assert(_ptAnchorCell.Y >= 0); 23536if (_ptAnchorCell.Y == -1) 23541if (_ptAnchorCell.Y < nextScreenVisibleRowIndex) 23543SelectRowRange(_ptAnchorCell.Y, nextScreenVisibleRowIndex, true); 23547SelectRowRange(nextScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23571Debug.Assert(_ptAnchorCell.Y >= 0); 23572if (_ptAnchorCell.Y == -1) 23580if (_ptAnchorCell.Y < nextScreenVisibleRowIndex) 23582SelectRowRange(_ptAnchorCell.Y, nextScreenVisibleRowIndex, true); 23586SelectRowRange(nextScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23594_ptAnchorCell.X, 23597_ptAnchorCell.Y, 23758Debug.Assert(_ptAnchorCell.Y >= 0); 23761if (_ptAnchorCell.X == -1) 23767_ptAnchorCell.X, 23770_ptAnchorCell.Y, 23797Debug.Assert(_ptAnchorCell.Y >= 0); 23798if (_ptAnchorCell.Y == -1) 23803if (_ptAnchorCell.Y < previousScreenVisibleRowIndex) 23805SelectRowRange(_ptAnchorCell.Y, previousScreenVisibleRowIndex, true); 23809SelectRowRange(previousScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23833Debug.Assert(_ptAnchorCell.Y >= 0); 23834if (_ptAnchorCell.Y == -1) 23842if (_ptAnchorCell.Y < previousScreenVisibleRowIndex) 23844SelectRowRange(_ptAnchorCell.Y, previousScreenVisibleRowIndex, true); 23848SelectRowRange(previousScreenVisibleRowIndex, _ptAnchorCell.Y, true); 23856_ptAnchorCell.X, 23859_ptAnchorCell.Y, 23997if (_ptAnchorCell.X == -1) 24003_ptAnchorCell.X, 24006_ptAnchorCell.Y, 24106if (_ptAnchorCell.X == -1) 24111if (Columns.DisplayInOrder(_ptAnchorCell.X, nextVisibleColumnIndex)) 24113SelectColumnRange(_ptAnchorCell.X, nextVisibleColumnIndex, true); 24117SelectColumnRange(nextVisibleColumnIndex, _ptAnchorCell.X, true); 24217if (_ptAnchorCell.X == -1) 24222if (Columns.DisplayInOrder(_ptAnchorCell.X, nextVisibleColumnIndex)) 24224SelectColumnRange(_ptAnchorCell.X, nextVisibleColumnIndex, true); 24228SelectColumnRange(nextVisibleColumnIndex, _ptAnchorCell.X, true); 24240if (_ptAnchorCell.X == -1) 24248_ptAnchorCell.X, 24251_ptAnchorCell.Y, 24415Debug.Assert(_ptAnchorCell.X >= 0); 24416if (_ptAnchorCell.X == -1) 24424_ptAnchorCell.X, 24427_ptAnchorCell.Y, 24510if (_ptAnchorCell.X == -1) 24516Debug.Assert(_ptAnchorCell.X >= 0); 24517SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 24598Debug.Assert(_ptAnchorCell.X >= 0); 24599if (_ptAnchorCell.X == -1) 24607SelectColumnRange(_ptAnchorCell.X, lastVisibleColumnIndex, true); 24614_ptAnchorCell.X, 24617_ptAnchorCell.Y, 25053if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex)) 25058Debug.Assert(_ptAnchorCell.Y >= 0); 25062_ptAnchorCell.X, 25065_ptAnchorCell.Y, 25155Debug.Assert(_ptAnchorCell.Y >= 0); 25156if (_ptAnchorCell.Y == -1) 25164_ptAnchorCell.X, 25167_ptAnchorCell.Y, 25251if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex)) 25257Debug.Assert(_ptAnchorCell.Y >= 0); 25258SelectRowRange(firstVisibleRowIndex, _ptAnchorCell.Y, true); 25347if (_ptAnchorCell.Y == -1) 25352if (_ptAnchorCell.Y >= previousVisibleRowIndex) 25354SelectRowRange(previousVisibleRowIndex, _ptAnchorCell.Y, true); 25358SelectRowRange(_ptAnchorCell.Y, previousVisibleRowIndex, true); 25435if (_ptAnchorCell.X == -1 || _ptCurrentCell.X == -1 || IsRowOutOfBounds(firstVisibleRowIndex)) 25440Debug.Assert(_ptAnchorCell.Y >= 0); 25444SelectRowRange(firstVisibleRowIndex, _ptAnchorCell.Y, true); 25451_ptAnchorCell.X, 25454_ptAnchorCell.Y, 25567if (_ptAnchorCell.Y == -1) 25572if (_ptAnchorCell.Y >= previousVisibleRowIndex) 25574SelectRowRange(previousVisibleRowIndex, _ptAnchorCell.Y, true); 25578SelectRowRange(_ptAnchorCell.Y, previousVisibleRowIndex, true); 25590if (_ptAnchorCell.Y == -1) 25596_ptAnchorCell.X, 25599_ptAnchorCell.Y, 27105_ptAnchorCell.X = dataGridViewColumn.Index; 27106_ptAnchorCell.Y = firstVisibleRowIndex; 27110_ptAnchorCell.X = -1; 27111_ptAnchorCell.Y = -1; 27415_ptAnchorCell.X = columnIndex; 27416_ptAnchorCell.Y = rowIndex; 27477_ptAnchorCell.X = columnIndex; 27478_ptAnchorCell.Y = rowIndex; 27571_ptAnchorCell.X = -1; 27572_ptAnchorCell.Y = -1;