Back to Devexpress

TreeListColumnCollection.AddRange(TreeListColumn[]) Method

windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumncollection-dot-addrange-x28-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumn-x29.md

latest6.1 KB
Original Source

TreeListColumnCollection.AddRange(TreeListColumn[]) Method

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

Declaration

csharp
public virtual void AddRange(
    TreeListColumn[] columns
)
vb
Public Overridable Sub AddRange(
    columns As TreeListColumn()
)

Parameters

NameTypeDescription
columnsTreeListColumn[]

An array of TreeListColumn objects.

|

Remarks

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

csharp
col1.OptionsColumn.ReadOnly = true;
treeList.Columns.AddRange(new TreeListColumn[] { col1 });

winforms-spreadsheet-pivot-table-api/CS/SpreadsheetPivotTableExamples/Form1.cs#L149

csharp
col1.OptionsColumn.ReadOnly = true;
treeList.Columns.AddRange(new TreeListColumn[] { col1 });

winforms-spreadsheetcontrol-api-part-3/CS/SpreadsheetControl_API_Part03/Form1.cs#L322

csharp
col1.OptionsColumn.ReadOnly = true;
treeList.Columns.AddRange(new TreeListColumn[] { col1 });

winforms-richeditcontrol-common-api/CS/RichEditAPISample/Form1.cs#L428

csharp
col1.OptionsColumn.ReadOnly = true;
treeList.Columns.AddRange(new TreeListColumn[] { col1 });

winforms-richedit-document-api/CS/RichEditAPISample/Form1.cs#L416

csharp
col1.OptionsColumn.ReadOnly = true;
treeList.Columns.AddRange(new TreeListColumn[] { col1 });

winforms-spreadsheet-chart-api/VB/SpreadsheetChartAPISamples/Form1.vb#L156

vb
col1.OptionsColumn.ReadOnly = True
treeList.Columns.AddRange(New TreeListColumn() {col1})

winforms-spreadsheet-pivot-table-api/VB/SpreadsheetPivotTableExamples/Form1.vb#L142

vb
col1.OptionsColumn.ReadOnly = True
treeList.Columns.AddRange(New TreeListColumn() {col1})

winforms-spreadsheetcontrol-api-part-3/VB/SpreadsheetControl_API_Part03/Form1.vb#L325

vb
col1.OptionsColumn.ReadOnly = True
treeList.Columns.AddRange(New TreeListColumn() {col1})
treeList.DataSource = New Object

winforms-richeditcontrol-common-api/VB/RichEditAPISample/Form1.vb#L420

vb
col1.OptionsColumn.ReadOnly = True
treeList.Columns.AddRange(New TreeListColumn() {col1})

winforms-richedit-document-api/VB/RichEditAPISample/Form1.vb#L421

vb
col1.OptionsColumn.ReadOnly = True
treeList.Columns.AddRange(New TreeListColumn() {col1})
treeList.DataSource = New Object

See Also

Add

Insert(Int32)

Remove(TreeListColumn)

Columns

TreeListColumnCollection Class

TreeListColumnCollection Members

DevExpress.XtraTreeList.Columns Namespace