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