1 write to _selectedCells
PresentationFramework (1)
System\Windows\Controls\DataGrid.cs (1)
88
_selectedCells
= new SelectedCellsCollection(this);
58 references to _selectedCells
PresentationFramework (58)
System\Windows\Controls\DataGrid.cs (58)
244
_selectedCells
.Clear();
660
_selectedCells
.OnColumnsChanged(action, oldDisplayIndex, oldColumn, newDisplayIndex, SelectedItems);
2152
reselectPlaceholderCells = ((newItemIndex >= 0) &&
_selectedCells
.Intersects(newItemIndex, out columnIndexRanges));
2186
_selectedCells
.RemoveRegion(newItemIndex, 0, 1, Columns.Count);
2192
_selectedCells
.AddRegion(rowIndex, columnIndexRanges[i], 1, columnIndexRanges[i + 1]);
2224
_selectedCells
.RemoveRegion(newItemIndex + 1, 0, 1, Columns.Count);
2248
_selectedCells
.AddRegion(newItemIndex, columnIndexRanges[i], 1, columnIndexRanges[i + 1]);
2669
_selectedCells
.ClearFullRows(SelectedItems);
3677
reselectPlaceholderCells = ((newItemIndex >= 0) &&
_selectedCells
.Intersects(newItemIndex, out columnIndexRanges));
3709
_selectedCells
.RemoveRegion(newItemIndex, 0, 1, Columns.Count);
3715
_selectedCells
.AddRegion(rowIndex, columnIndexRanges[i], 1, columnIndexRanges[i + 1]);
4129
get { return
_selectedCells
; }
4134
get { return
_selectedCells
; }
4209
(
_selectedCells
.Count > 1)) // There is more than one selected cell
4213
_selectedCells
.RemoveAllButOne(newItems[0]);
4270
int currentSelectionCount =
_selectedCells
.Count;
4363
_selectedCells
.AddRegion(0, 0, numItems, numColumns);
4373
_selectedCells
.Clear();
4374
_selectedCells
.Add(currentCellInfo);
4396
if (
_selectedCells
.Count > 0)
4398
_selectedCells
.Clear();
4401
_selectedCells
.AddRegion(0, 0, numItems, numColumns);
4415
_selectedCells
.Clear();
4457
dataGrid.
_selectedCells
.RemoveAllButOne();
4473
dataGrid.
_selectedCells
.RemoveAllButOneRow(dataGrid.InternalSelectedInfo.Index);
4481
dataGrid.
_selectedCells
.RemoveAllButOne();
4521
dataGrid.
_selectedCells
.Clear();
4677
_selectedCells
.AddRegion(rowIndex, 0, 1, columnCount);
4681
_selectedCells
.RemoveRegion(rowIndex, 0, 1, columnCount);
4714
_selectedCells
.AddValidatedCell(cellInfo);
4716
else if (
_selectedCells
.Contains(cellInfo))
4718
_selectedCells
.Remove(cellInfo);
4901
_selectedCells
.Clear();
4941
_selectedCells
.RemoveRegion(removeRangeStartIndex, 0, removeRangeEndIndex - removeRangeStartIndex + 1, Columns.Count);
4967
_selectedCells
.AddRegion(startIndex, 0, endIndex - startIndex + 1, _columns.Count);
4983
if (
_selectedCells
.Count > 0)
4988
_selectedCells
.Clear();
5003
_selectedCells
.AddRegion(_editingRowInfo.Index, 0, 1, numColumns);
5081
_selectedCells
.Clear();
5094
_selectedCells
.RemoveRegion(previousStartIndex, previousStartColumnIndex, previousRowCount, previousColumnCount);
5132
_selectedCells
.AddRegion(Math.Min(startIndex, endIndex), Math.Min(startColumnIndex, endColumnIndex), newRowCount, newColumnCount);
5137
bool selectedCellsContainsCellInfo =
_selectedCells
.Contains(cellInfo);
5143
selectedCellsContainsCellInfo =
_selectedCells
.Contains(_editingRowInfo.Index, cellInfoColumnIndex);
5152
_selectedCells
.RemoveRegion(_editingRowInfo.Index, cellInfoColumnIndex, 1, 1);
5156
_selectedCells
.Remove(cellInfo);
5177
_selectedCells
.Clear();
5183
_selectedCells
.AddRegion(_editingRowInfo.Index, cellInfoColumnIndex, 1, 1);
5188
_selectedCells
.AddValidatedCell(cellInfo);
5212
_selectedCells
.AddRegion(itemIndex, 0, 1, numColumns);
5228
_selectedCells
.RemoveRegion(itemIndex, 0, 1, numColumns);
5386
_selectedCells
.OnItemsCollectionChanged(e, ranges);
7655
_selectedCells
.RestoreOnlyFullRows(ranges);
7788
_selectedCells
.AddRegion(info.Index, 0, 1, columnCount);
8255
args.CanExecute = ClipboardCopyMode != DataGridClipboardCopyMode.None &&
_selectedCells
.Count > 0;
8291
if (
_selectedCells
.GetSelectionRange(out minColumnDisplayIndex, out maxColumnDisplayIndex, out minRowIndex, out maxRowIndex))
8311
if (
_selectedCells
.Intersects(i))
8374
if (
_selectedCells
.Intersects(rowIndex))
8387
if (
_selectedCells
.Contains(rowIndex, i))