windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumncollection-dot-addrange-x28-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumn-x29.md
Adds an array of columns to the end of the collection.
Namespace : DevExpress.XtraTreeList.Columns
Assembly : DevExpress.XtraTreeList.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList
public virtual void AddRange(
TreeListColumn[] columns
)
Public Overridable Sub AddRange(
columns As TreeListColumn()
)
| Name | Type | Description |
|---|---|---|
| columns | TreeListColumn[] |
An array of TreeListColumn objects.
|
Columns are added to the collection in the same order as they appear in the array.
The following code snippets (auto-collected from DevExpress Examples) contain references to the AddRange(TreeListColumn[]) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/Form1.cs#L161
col1.OptionsColumn.ReadOnly = true;
treeList.Columns.AddRange(new TreeListColumn[] { col1 });
winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/Form1.cs#L149
col1.OptionsColumn.ReadOnly = true;
treeList.Columns.AddRange(new TreeListColumn[] { col1 });
winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L322
col1.OptionsColumn.ReadOnly = true;
treeList.Columns.AddRange(new TreeListColumn[] { col1 });
winforms-richeditcontrol-common-api/CS/RichEditAPISample/Form1.cs#L428
col1.OptionsColumn.ReadOnly = true;
treeList.Columns.AddRange(new TreeListColumn[] { col1 });
winforms-richedit-document-api/CS/RichEditAPISample/Form1.cs#L416
col1.OptionsColumn.ReadOnly = true;
treeList.Columns.AddRange(new TreeListColumn[] { col1 });
winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/Form1.vb#L156
col1.OptionsColumn.ReadOnly = True
treeList.Columns.AddRange(New TreeListColumn() {col1})
winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/Form1.vb#L142
col1.OptionsColumn.ReadOnly = True
treeList.Columns.AddRange(New TreeListColumn() {col1})
winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L325
col1.OptionsColumn.ReadOnly = True
treeList.Columns.AddRange(New TreeListColumn() {col1})
treeList.DataSource = New Object
winforms-richeditcontrol-common-api/VB/RichEditAPISample/Form1.vb#L420
col1.OptionsColumn.ReadOnly = True
treeList.Columns.AddRange(New TreeListColumn() {col1})
winforms-richedit-document-api/VB/RichEditAPISample/Form1.vb#L421
col1.OptionsColumn.ReadOnly = True
treeList.Columns.AddRange(New TreeListColumn() {col1})
treeList.DataSource = New Object
See Also
TreeListColumnCollection Class