1 write to ptAnchorCell
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridView.cs (1)
518this.ptAnchorCell = new Point(-1, -1);
220 references to ptAnchorCell
System.Windows.Forms (220)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (220)
8672if (this.ptAnchorCell.Y != -1 && 8673(this.Rows.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Frozen) != 0 && 8707if (this.ptAnchorCell.Y != -1 && 8708((this.Rows.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0 || 8769if (this.ptAnchorCell.X != -1 && 8770this.Columns[this.ptAnchorCell.X].Frozen && 8804if (this.ptAnchorCell.X != -1 && 8805(!this.Columns[this.ptAnchorCell.X].Frozen || 8888(this.ptAnchorCell.Y != -1 && (this.Rows.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Frozen) == 0) 8948(this.ptAnchorCell.X != -1 && !this.Columns[this.ptAnchorCell.X].Frozen) 12523if (this.ptAnchorCell.X == -1) 12527UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, hti.col, 12528this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 12562this.ptAnchorCell.X > -1 && 12563this.Columns[this.ptAnchorCell.X].Selected) 12606if (this.Columns.DisplayInOrder(this.ptAnchorCell.X, hti.col)) 12608SelectColumnRange(this.ptAnchorCell.X, hti.col, true); 12612SelectColumnRange(hti.col, this.ptAnchorCell.X, true); 12688if (this.ptAnchorCell.X == -1) 12692UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, hti.col, 12693this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 12739this.ptAnchorCell.Y > -1 && (this.Rows.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 12783if (hti.row >= this.ptAnchorCell.Y) 12785SelectRowRange(this.ptAnchorCell.Y, hti.row, true); 12789SelectRowRange(hti.row, this.ptAnchorCell.Y, true); 12868if (this.ptAnchorCell.X == -1) 12872UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, hti.col, 12873this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 13145if (this.ptAnchorCell.X == -1 || IsInnerCellOutOfBounds(hti.col, hti.row)) 13149UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, hti.col, 13150this.ptAnchorCell.Y, ref oldEdgeRowIndex, hti.row); 14236this.ptAnchorCell.X > -1 && 14237this.Columns[this.ptAnchorCell.X].Selected) 14288if (this.Columns.DisplayInOrder(this.ptAnchorCell.X, hti.col)) 14290SelectColumnRange(this.ptAnchorCell.X, hti.col, true); 14294SelectColumnRange(hti.col, this.ptAnchorCell.X, true); 18516this.ptAnchorCell.Y > -1 && 18517(this.Rows.GetRowState(this.ptAnchorCell.Y) & DataGridViewElementStates.Selected) != 0) 18569if (hti.row >= this.ptAnchorCell.Y) 18571SelectRowRange(this.ptAnchorCell.Y, hti.row, true); 18575SelectRowRange(hti.row, this.ptAnchorCell.Y, true); 20764Debug.Assert(this.ptAnchorCell.Y >= 0); 20768if (this.ptCurrentCell.X == -1 || this.ptAnchorCell.X == -1 || 20774UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 20775this.ptAnchorCell.Y, ref oldEdgeRowIndex, lastVisibleRowIndex); 20886if (this.ptAnchorCell.X == -1) 20891UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 20892this.ptAnchorCell.Y, ref oldEdgeRowIndex, nextVisibleRowIndex); 20987if (this.ptAnchorCell.Y == -1 || this.ptCurrentCell.X == -1 || 20994Debug.Assert(this.ptAnchorCell.Y >= 0); 20995SelectRowRange(this.ptAnchorCell.Y, lastVisibleRowIndex, true); 21103if (this.ptAnchorCell.X == -1) 21108if (nextVisibleRowIndex >= this.ptAnchorCell.Y) 21110SelectRowRange(this.ptAnchorCell.Y, nextVisibleRowIndex, true); 21114SelectRowRange(nextVisibleRowIndex, this.ptAnchorCell.Y, true); 21205Debug.Assert(this.ptAnchorCell.Y >= 0); 21206if (this.ptAnchorCell.Y == -1 || this.ptCurrentCell.Y == -1 || 21215SelectRowRange(this.ptAnchorCell.Y, lastVisibleRowIndex, true); 21223UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 21224this.ptAnchorCell.Y, ref oldEdgeRowIndex, lastVisibleRowIndex); 21351if (this.ptAnchorCell.Y == -1) 21356if (nextVisibleRowIndex >= this.ptAnchorCell.Y) 21358SelectRowRange(this.ptAnchorCell.Y, nextVisibleRowIndex, true); 21362SelectRowRange(nextVisibleRowIndex, this.ptAnchorCell.Y, true); 21377if (this.ptAnchorCell.X == -1) 21382UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 21383this.ptAnchorCell.Y, ref oldEdgeRowIndex, nextVisibleRowIndex); 21582if (this.MultiSelect && this.ptAnchorCell.X >= 0) 21586UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, lastVisibleColumnIndex, 21587this.ptAnchorCell.Y, ref oldEdgeRowIndex, lastVisibleRowIndex); 21626if (this.MultiSelect && this.ptAnchorCell.X >= 0) 21638UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, lastVisibleColumnIndex, 21639this.ptAnchorCell.Y, ref oldEdgeRowIndex, lastVisibleRowIndex); 21697SelectColumnRange(this.ptAnchorCell.X, lastVisibleColumnIndex, true); 21736if (this.ptAnchorCell.X == -1) 21740SelectColumnRange(this.ptAnchorCell.X, lastVisibleColumnIndex, true); 21750if (this.ptAnchorCell.X == -1) 21754UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, lastVisibleColumnIndex, 21755this.ptAnchorCell.Y, ref oldEdgeRowIndex, lastVisibleRowIndex); 21812if (this.ptAnchorCell.Y == -1) 21816SelectRowRange(this.ptAnchorCell.Y, lastVisibleRowIndex, true); 22036if (this.MultiSelect && this.ptAnchorCell.X >= 0) 22040UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, firstVisibleColumnIndex, 22041this.ptAnchorCell.Y, ref oldEdgeRowIndex, firstVisibleRowIndex); 22080if (this.MultiSelect && this.ptAnchorCell.X >= 0) 22086SelectRowRange(firstVisibleRowIndex, this.ptAnchorCell.Y, true); 22092UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, firstVisibleColumnIndex, 22093this.ptAnchorCell.Y, ref oldEdgeRowIndex, firstVisibleRowIndex); 22151if (this.ptAnchorCell.X == -1) 22155SelectColumnRange(firstVisibleColumnIndex, this.ptAnchorCell.X, true); 22194if (this.ptAnchorCell.X == -1) 22198SelectColumnRange(firstVisibleColumnIndex, this.ptAnchorCell.X, true); 22208if (this.ptAnchorCell.X == -1) 22212UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, firstVisibleColumnIndex, 22213this.ptAnchorCell.Y, ref oldEdgeRowIndex, firstVisibleRowIndex); 22570Debug.Assert(this.ptAnchorCell.X >= 0); 22574if (this.ptAnchorCell.X == -1) 22578UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, previousVisibleColumnIndex, 22579this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 22667if (this.ptAnchorCell.X == -1) 22671if (this.Columns.DisplayInOrder(this.ptAnchorCell.X, previousVisibleColumnIndex)) 22673SelectColumnRange(this.ptAnchorCell.X, previousVisibleColumnIndex, true); 22677SelectColumnRange(previousVisibleColumnIndex, this.ptAnchorCell.X, true); 22767if (this.ptAnchorCell.X == -1) 22771if (this.Columns.DisplayInOrder(this.ptAnchorCell.X, previousVisibleColumnIndex)) 22773SelectColumnRange(this.ptAnchorCell.X, previousVisibleColumnIndex, true); 22777SelectColumnRange(previousVisibleColumnIndex, this.ptAnchorCell.X, true); 22789if (this.ptAnchorCell.X == -1) 22793UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, previousVisibleColumnIndex, 22794this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 22937Debug.Assert(this.ptAnchorCell.X >= 0); 22941if (this.ptAnchorCell.X == -1 || this.ptCurrentCell.X == -1 || 22946UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, firstVisibleColumnIndex, 22947this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 23026if (this.ptAnchorCell.X == -1 || this.ptCurrentCell.Y == -1 || 23032Debug.Assert(this.ptAnchorCell.X >= 0); 23033SelectColumnRange(firstVisibleColumnIndex, this.ptAnchorCell.X, true); 23111if (this.ptAnchorCell.X == -1 || this.ptCurrentCell.X == -1 || 23116Debug.Assert(this.ptAnchorCell.X >= 0); 23120SelectColumnRange(firstVisibleColumnIndex, this.ptAnchorCell.X, true); 23128UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, firstVisibleColumnIndex, 23129this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 23351Debug.Assert(this.ptAnchorCell.Y >= 0); 23354if (this.ptAnchorCell.Y == -1) 23358UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 23359this.ptAnchorCell.Y, ref oldEdgeRowIndex, nextScreenVisibleRowIndex); 23382Debug.Assert(this.ptAnchorCell.Y >= 0); 23383if (this.ptAnchorCell.Y == -1) 23387if (this.ptAnchorCell.Y < nextScreenVisibleRowIndex) 23389SelectRowRange(this.ptAnchorCell.Y, nextScreenVisibleRowIndex, true); 23393SelectRowRange(nextScreenVisibleRowIndex, this.ptAnchorCell.Y, true); 23415Debug.Assert(this.ptAnchorCell.Y >= 0); 23416if (this.ptAnchorCell.Y == -1) 23423if (this.ptAnchorCell.Y < nextScreenVisibleRowIndex) 23425SelectRowRange(this.ptAnchorCell.Y, nextScreenVisibleRowIndex, true); 23429SelectRowRange(nextScreenVisibleRowIndex, this.ptAnchorCell.Y, true); 23436UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 23437this.ptAnchorCell.Y, ref oldEdgeRowIndex, nextScreenVisibleRowIndex); 23590Debug.Assert(this.ptAnchorCell.Y >= 0); 23593if (this.ptAnchorCell.X == -1) 23597UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 23598this.ptAnchorCell.Y, ref oldEdgeRowIndex, previousScreenVisibleRowIndex); 23621Debug.Assert(this.ptAnchorCell.Y >= 0); 23622if (this.ptAnchorCell.Y == -1) 23626if (this.ptAnchorCell.Y < previousScreenVisibleRowIndex) 23628SelectRowRange(this.ptAnchorCell.Y, previousScreenVisibleRowIndex, true); 23632SelectRowRange(previousScreenVisibleRowIndex, this.ptAnchorCell.Y, true); 23654Debug.Assert(this.ptAnchorCell.Y >= 0); 23655if (this.ptAnchorCell.Y == -1) 23662if (this.ptAnchorCell.Y < previousScreenVisibleRowIndex) 23664SelectRowRange(this.ptAnchorCell.Y, previousScreenVisibleRowIndex, true); 23668SelectRowRange(previousScreenVisibleRowIndex, this.ptAnchorCell.Y, true); 23675UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 23676this.ptAnchorCell.Y, ref oldEdgeRowIndex, previousScreenVisibleRowIndex); 23812if (this.ptAnchorCell.X == -1) 23816UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, nextVisibleColumnIndex, 23817this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 23905if (this.ptAnchorCell.X == -1) 23909if (this.Columns.DisplayInOrder(this.ptAnchorCell.X, nextVisibleColumnIndex)) 23911SelectColumnRange(this.ptAnchorCell.X, nextVisibleColumnIndex, true); 23915SelectColumnRange(nextVisibleColumnIndex, this.ptAnchorCell.X, true); 24005if (this.ptAnchorCell.X == -1) 24009if (this.Columns.DisplayInOrder(this.ptAnchorCell.X, nextVisibleColumnIndex)) 24011SelectColumnRange(this.ptAnchorCell.X, nextVisibleColumnIndex, true); 24015SelectColumnRange(nextVisibleColumnIndex, this.ptAnchorCell.X, true); 24027if (this.ptAnchorCell.X == -1) 24034UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, nextVisibleColumnIndex, 24035this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 24181Debug.Assert(this.ptAnchorCell.X >= 0); 24182if (this.ptAnchorCell.X == -1) 24188UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, lastVisibleColumnIndex, 24189this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 24263if (this.ptAnchorCell.X == -1) 24268Debug.Assert(this.ptAnchorCell.X >= 0); 24269SelectColumnRange(this.ptAnchorCell.X, lastVisibleColumnIndex, true); 24343Debug.Assert(this.ptAnchorCell.X >= 0); 24344if (this.ptAnchorCell.X == -1) 24351SelectColumnRange(this.ptAnchorCell.X, lastVisibleColumnIndex, true); 24359UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, lastVisibleColumnIndex, 24360this.ptAnchorCell.Y, ref oldEdgeRowIndex, oldEdgeRowIndex); 24791if (this.ptAnchorCell.X == -1 || this.ptCurrentCell.X == -1 || 24797Debug.Assert(this.ptAnchorCell.Y >= 0); 24801UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 24802this.ptAnchorCell.Y, ref oldEdgeRowIndex, firstVisibleRowIndex); 24889Debug.Assert(this.ptAnchorCell.Y >= 0); 24890if (this.ptAnchorCell.Y == -1) 24897UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 24898this.ptAnchorCell.Y, ref oldEdgeRowIndex, previousVisibleRowIndex); 24973if (this.ptAnchorCell.X == -1 || this.ptCurrentCell.X == -1 || 24979Debug.Assert(this.ptAnchorCell.Y >= 0); 24980SelectRowRange(firstVisibleRowIndex, this.ptAnchorCell.Y, true); 25067if (this.ptAnchorCell.Y == -1) 25071if (this.ptAnchorCell.Y >= previousVisibleRowIndex) 25073SelectRowRange(previousVisibleRowIndex, this.ptAnchorCell.Y, true); 25077SelectRowRange(this.ptAnchorCell.Y, previousVisibleRowIndex, true); 25152if (this.ptAnchorCell.X == -1 || this.ptCurrentCell.X == -1 || 25157Debug.Assert(this.ptAnchorCell.Y >= 0); 25161SelectRowRange(firstVisibleRowIndex, this.ptAnchorCell.Y, true); 25169UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 25170this.ptAnchorCell.Y, ref oldEdgeRowIndex, firstVisibleRowIndex); 25276if (this.ptAnchorCell.Y == -1) 25280if (this.ptAnchorCell.Y >= previousVisibleRowIndex) 25282SelectRowRange(previousVisibleRowIndex, this.ptAnchorCell.Y, true); 25286SelectRowRange(this.ptAnchorCell.Y, previousVisibleRowIndex, true); 25298if (this.ptAnchorCell.Y == -1) 25302UpdateSelectedCellsBlock(this.ptAnchorCell.X, ref oldEdgeColumnIndex, oldEdgeColumnIndex, 25303this.ptAnchorCell.Y, ref oldEdgeRowIndex, previousVisibleRowIndex); 26717this.ptAnchorCell.X = dataGridViewColumn.Index; 26718this.ptAnchorCell.Y = firstVisibleRowIndex; 26722this.ptAnchorCell.X = -1; 26723this.ptAnchorCell.Y = -1; 27000this.ptAnchorCell.X = columnIndex; 27001this.ptAnchorCell.Y = rowIndex; 27065this.ptAnchorCell.X = columnIndex; 27066this.ptAnchorCell.Y = rowIndex; 27143this.ptAnchorCell.X = -1; 27144this.ptAnchorCell.Y = -1;