70 references to Columns
PresentationFramework (70)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (5)
137
return this.OwningDataGrid.
Columns
.Count;
152
column >= 0 && column < this.OwningDataGrid.
Columns
.Count)
155
DataGridColumn dataGridColumn = this.OwningDataGrid.
Columns
[column];
251
for (int i = 0; i < this.OwningDataGrid.
Columns
.Count; i++)
253
AutomationPeer peer = dataGridColumnHeadersPresenterPeer.FindOrCreateItemAutomationPeer(this.OwningDataGrid.
Columns
[i]);
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
525
return this.OwningDataGrid.
Columns
.IndexOf(this._column);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (3)
68
if (OwningDataGrid?.
Columns
.Count > 0)
84
childItems = OwningDataGrid.
Columns
;
172
items = OwningDataGrid.
Columns
;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (6)
146
IList<DataGridColumn> columns = OwningDataGrid.
Columns
;
240
if (this.OwningDataGrid.
Columns
.Count > 0)
242
DataGridCell cell = this.OwningDataGrid.TryFindCell(item, this.OwningDataGrid.
Columns
[0]);
381
for (int i = 0; i < this.OwningDataGrid.
Columns
.Count; i++)
435
childItems = OwningDataGrid.
Columns
;
537
IList<DataGridColumn> columns = OwningDataGrid.
Columns
;
System\Windows\Controls\DataGrid.cs (17)
300
column.DataGridOwner.
Columns
.Remove(column);
385
if (displayIndex < 0 || displayIndex >=
Columns
.Count)
2189
_selectedCells.RemoveRegion(newItemIndex, 0, 1,
Columns
.Count);
2227
_selectedCells.RemoveRegion(newItemIndex + 1, 0, 1,
Columns
.Count);
3712
_selectedCells.RemoveRegion(newItemIndex, 0, 1,
Columns
.Count);
4944
_selectedCells.RemoveRegion(removeRangeStartIndex, 0, removeRangeEndIndex - removeRangeStartIndex + 1,
Columns
.Count);
5738
int columnCount =
Columns
.Count;
5750
if (nextDisplayIndex >=
Columns
.Count)
7176
if (
Columns
!= null)
7178
foreach (DataGridColumn column in
Columns
)
7602
foreach (DataGridColumn column in
Columns
)
7829
for (int columnIndex =
Columns
.Count - 1; columnIndex >= 0; --columnIndex)
7831
if (
Columns
[columnIndex].IsAutoGenerated)
7833
Columns
.RemoveAt(columnIndex);
7900
dataGrid.
Columns
.Add(eventArgs.Column);
7967
if (frozenColumnCount > dataGrid.
Columns
.Count)
7969
return dataGrid.
Columns
.Count;
System\Windows\Controls\DataGridCell.cs (2)
105
if ((index >= 0) && (index < dataGrid.
Columns
.Count))
108
DataGridColumn column = dataGrid.
Columns
[index];
System\Windows\Controls\DataGridCellsPanel.cs (14)
200
measureWidth += GetColumnEstimatedMeasureWidthSum(blockList[blockList.Count - 1].EndIndex + 1, parentDataGrid.
Columns
.Count - 1, averageColumnWidth);
268
for (int i = 0, count = parentDataGrid.
Columns
.Count; i < count; i++)
606
if (!parentDataGrid.
Columns
[i].IsVisible)
611
if (null == GenerateChild(generator, constraint, parentDataGrid.
Columns
[i], ref childIndex, out childSize))
833
int columnCount = parentDataGrid.
Columns
.Count;
839
DataGridColumn column = parentDataGrid.
Columns
[i];
1036
ObservableCollection<DataGridColumn> columns = parentDataGrid.
Columns
;
1391
for (int i = 0, count = parentDataGrid.
Columns
.Count; i < count; i++)
1601
columnIndex = parentDataGrid.
Columns
.IndexOf(cell.Column);
1643
DataGridColumnCollection columns = (DataGridColumnCollection)ParentDataGrid.
Columns
;
1925
measureWidth += GetColumnEstimatedMeasureWidth(parentDataGrid.
Columns
[i], averageColumnWidth);
2154
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, parentDataGrid.
Columns
.Count);
2236
if (parentDataGrid != null && 0 <= index && index < parentDataGrid.
Columns
.Count)
2395
return parentDataGrid.
Columns
;
System\Windows\Controls\DataGridColumn.cs (1)
643
int columnIndex = _dataGridOwner.
Columns
.IndexOf(this);
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
122
ObservableCollection<DataGridColumn> columns = dataGridOwner.
Columns
;
629
return (owningDataGrid != null) ? owningDataGrid.
Columns
: null;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
550
int columnCount = dataGrid.
Columns
.Count;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
76
ItemsSource = new DataGridColumnHeaderCollection(grid.
Columns
);
957
for (i = 0; i < dataGrid.
Columns
.Count; i++)
1019
if (i == dataGrid.
Columns
.Count)
1021
displayIndex = dataGrid.
Columns
.Count - 1;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (13)
984
int numColumns = _owner.
Columns
.Count;
1013
int numColumns = _owner.
Columns
.Count;
1050
RemoveRegion(rowIndex, 0, 1, _owner.
Columns
.Count, ref removedRegions);
1069
int numColumns = _owner.
Columns
.Count;
1157
int numColumns = _owner.
Columns
.Count;
1201
int numColumns = _owner.
Columns
.Count;
1260
int numColumns = _owner.
Columns
.Count;
1398
int numColumns = _owner.
Columns
.Count;
1439
int numColumns = _owner.
Columns
.Count;
1483
RemoveAllButRegion(rowIndex, 0, 1, _owner.
Columns
.Count);
1509
CellRegion rowRegion = new CellRegion(0, rowIndex, _owner.
Columns
.Count, 1);
1534
CellRegion rowRegion = new CellRegion(0, rowIndex, _owner.
Columns
.Count, 1);
1615
(rowIndex < owner.Items.Count) && (columnIndex < owner.
Columns
.Count))
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12393
"Columns:", dg.
Columns
.Count,