70 references to Columns
PresentationFramework (70)
System\Windows\Automation\Peers\DataGridAutomationPeer.cs (5)
132
return this.OwningDataGrid.
Columns
.Count;
147
column >= 0 && column < this.OwningDataGrid.
Columns
.Count)
150
DataGridColumn dataGridColumn = this.OwningDataGrid.
Columns
[column];
246
for (int i = 0; i < this.OwningDataGrid.
Columns
.Count; i++)
248
AutomationPeer peer = dataGridColumnHeadersPresenterPeer.FindOrCreateItemAutomationPeer(this.OwningDataGrid.
Columns
[i]);
System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
519
return this.OwningDataGrid.
Columns
.IndexOf(this._column);
System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (3)
66
if (OwningDataGrid?.
Columns
.Count > 0)
82
childItems = OwningDataGrid.
Columns
;
170
items = OwningDataGrid.
Columns
;
System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (6)
141
IList<DataGridColumn> columns = OwningDataGrid.
Columns
;
235
if (this.OwningDataGrid.
Columns
.Count > 0)
237
DataGridCell cell = this.OwningDataGrid.TryFindCell(item, this.OwningDataGrid.
Columns
[0]);
376
for (int i = 0; i < this.OwningDataGrid.
Columns
.Count; i++)
430
childItems = OwningDataGrid.
Columns
;
532
IList<DataGridColumn> columns = OwningDataGrid.
Columns
;
System\Windows\Controls\DataGrid.cs (17)
297
column.DataGridOwner.
Columns
.Remove(column);
382
if (displayIndex < 0 || displayIndex >=
Columns
.Count)
2186
_selectedCells.RemoveRegion(newItemIndex, 0, 1,
Columns
.Count);
2224
_selectedCells.RemoveRegion(newItemIndex + 1, 0, 1,
Columns
.Count);
3709
_selectedCells.RemoveRegion(newItemIndex, 0, 1,
Columns
.Count);
4941
_selectedCells.RemoveRegion(removeRangeStartIndex, 0, removeRangeEndIndex - removeRangeStartIndex + 1,
Columns
.Count);
5735
int columnCount =
Columns
.Count;
5747
if (nextDisplayIndex >=
Columns
.Count)
7173
if (
Columns
!= null)
7175
foreach (DataGridColumn column in
Columns
)
7599
foreach (DataGridColumn column in
Columns
)
7826
for (int columnIndex =
Columns
.Count - 1; columnIndex >= 0; --columnIndex)
7828
if (
Columns
[columnIndex].IsAutoGenerated)
7830
Columns
.RemoveAt(columnIndex);
7897
dataGrid.
Columns
.Add(eventArgs.Column);
7964
if (frozenColumnCount > dataGrid.
Columns
.Count)
7966
return dataGrid.
Columns
.Count;
System\Windows\Controls\DataGridCell.cs (2)
98
if ((index >= 0) && (index < dataGrid.
Columns
.Count))
101
DataGridColumn column = dataGrid.
Columns
[index];
System\Windows\Controls\DataGridCellsPanel.cs (14)
196
measureWidth += GetColumnEstimatedMeasureWidthSum(blockList[blockList.Count - 1].EndIndex + 1, parentDataGrid.
Columns
.Count - 1, averageColumnWidth);
264
for (int i = 0, count = parentDataGrid.
Columns
.Count; i < count; i++)
602
if (!parentDataGrid.
Columns
[i].IsVisible)
607
if (null == GenerateChild(generator, constraint, parentDataGrid.
Columns
[i], ref childIndex, out childSize))
829
int columnCount = parentDataGrid.
Columns
.Count;
835
DataGridColumn column = parentDataGrid.
Columns
[i];
1032
ObservableCollection<DataGridColumn> columns = parentDataGrid.
Columns
;
1387
for (int i = 0, count = parentDataGrid.
Columns
.Count; i < count; i++)
1597
columnIndex = parentDataGrid.
Columns
.IndexOf(cell.Column);
1639
DataGridColumnCollection columns = (DataGridColumnCollection)ParentDataGrid.
Columns
;
1921
measureWidth += GetColumnEstimatedMeasureWidth(parentDataGrid.
Columns
[i], averageColumnWidth);
2150
ArgumentOutOfRangeException.ThrowIfGreaterThanOrEqual(index, parentDataGrid.
Columns
.Count);
2232
if (parentDataGrid != null && 0 <= index && index < parentDataGrid.
Columns
.Count)
2391
return parentDataGrid.
Columns
;
System\Windows\Controls\DataGridColumn.cs (1)
640
int columnIndex = _dataGridOwner.
Columns
.IndexOf(this);
System\Windows\Controls\Primitives\DataGridCellsPresenter.cs (2)
117
ObservableCollection<DataGridColumn> columns = dataGridOwner.
Columns
;
624
return (owningDataGrid != null) ? owningDataGrid.
Columns
: null;
System\Windows\Controls\Primitives\DataGridColumnHeader.cs (1)
545
int columnCount = dataGrid.
Columns
.Count;
System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (4)
71
ItemsSource = new DataGridColumnHeaderCollection(grid.
Columns
);
952
for (i = 0; i < dataGrid.
Columns
.Count; i++)
1014
if (i == dataGrid.
Columns
.Count)
1016
displayIndex = dataGrid.
Columns
.Count - 1;
System\Windows\Controls\VirtualizedCellInfoCollection.cs (13)
980
int numColumns = _owner.
Columns
.Count;
1009
int numColumns = _owner.
Columns
.Count;
1046
RemoveRegion(rowIndex, 0, 1, _owner.
Columns
.Count, ref removedRegions);
1065
int numColumns = _owner.
Columns
.Count;
1153
int numColumns = _owner.
Columns
.Count;
1197
int numColumns = _owner.
Columns
.Count;
1256
int numColumns = _owner.
Columns
.Count;
1394
int numColumns = _owner.
Columns
.Count;
1435
int numColumns = _owner.
Columns
.Count;
1479
RemoveAllButRegion(rowIndex, 0, 1, _owner.
Columns
.Count);
1505
CellRegion rowRegion = new CellRegion(0, rowIndex, _owner.
Columns
.Count, 1);
1530
CellRegion rowRegion = new CellRegion(0, rowIndex, _owner.
Columns
.Count, 1);
1611
(rowIndex < owner.Items.Count) && (columnIndex < owner.
Columns
.Count))
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12388
"Columns:", dg.
Columns
.Count,