1 write to DisplayIndexMap
PresentationFramework (1)
System\Windows\Controls\DataGridColumnCollection.cs (1)
23
DisplayIndexMap
= new List<int>(5);
26 references to DisplayIndexMap
PresentationFramework (26)
System\Windows\Controls\DataGrid.cs (1)
416
get { return InternalColumns.
DisplayIndexMap
; }
System\Windows\Controls\DataGridCellsPanel.cs (1)
1651
List<int> displayIndexMap = columns.
DisplayIndexMap
;
System\Windows\Controls\DataGridColumnCollection.cs (24)
130
DisplayIndexMap
.Clear();
227
Debug.Assert(displayIndex >= 0 && displayIndex <
DisplayIndexMap
.Count, "displayIndex should have already been validated");
228
return this[
DisplayIndexMap
[displayIndex]];
362
int columnIndex =
DisplayIndexMap
[oldDisplayIndex];
363
DisplayIndexMap
.RemoveAt(oldDisplayIndex);
364
DisplayIndexMap
.Insert(newDisplayIndex, columnIndex);
431
for (int i = 0; i <
DisplayIndexMap
.Count; i++)
470
Debug.Assert(
DisplayIndexMap
.Count == 0, "DisplayIndexMap should be empty until first measure call.");
544
DisplayIndexMap
.Add(assignedDisplayIndexMap[displayIndex]);
562
Debug.Assert(
DisplayIndexMap
.Count > Count, "Columns were just removed: the display index map shouldn't have yet been updated");
570
for (int i = 0; i <
DisplayIndexMap
.Count; i++)
668
DisplayIndexMap
.Insert(newDisplayIndex, columnIndex);
670
for (int i = 0; i <
DisplayIndexMap
.Count; i++)
672
if (
DisplayIndexMap
[i] >= columnIndex && i != newDisplayIndex)
676
DisplayIndexMap
[i]++;
686
int removedDisplayIndex =
DisplayIndexMap
.IndexOf(columnIndex);
689
DisplayIndexMap
.RemoveAt(removedDisplayIndex);
691
for (int i = 0; i <
DisplayIndexMap
.Count; i++)
693
if (
DisplayIndexMap
[i] >= columnIndex)
697
DisplayIndexMap
[i]--;
726
Debug.Assert(Count ==
DisplayIndexMap
.Count, "Display Index map is of the wrong size");
727
for (int i = 0; i <
DisplayIndexMap
.Count; i++)
729
Debug.Assert(
DisplayIndexMap
[i] >= 0 &&
DisplayIndexMap
[i] < Count, "DisplayIndex map entry doesn't point to a valid column");