windowsforms-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumncollection-dot-add-x28-devexpress-dot-xtratreelist-dot-columns-dot-treelistcolumn-x29.md
Adds the specified column 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 int Add(
TreeListColumn column
)
Public Function Add(
column As TreeListColumn
) As Integer
| Name | Type | Description |
|---|---|---|
| column | TreeListColumn |
An object that specifies the column to be added.
|
| Type | Description |
|---|---|
| Int32 |
A value that specifies the position into which the column was inserted.
|
If the collection already contains the specified column, the Add method returns this column position within the collection.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Add(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.
xaf-win-gantt-control/CS/XPO/GanttSolutionXPO/GanttSolutionXPO.Win/Editors/CustomGanttEditor.cs#L75
ganttColumn.Format.FormatType = DevExpress.Utils.FormatType.Custom;
control.Columns.Add(ganttColumn);
}
zip-compression-and-archive-api-examples/CS/CompressionLibraryExamples/Form1.cs#L29
treeList1.Columns.Add(new TreeListColumn() { Caption = "Action", VisibleIndex = 0, SortOrder = SortOrder.Ascending });
treeList1.DataSource = treeDataSource;
zip-compression-and-archive-api-examples/VB/CompressionLibraryExamples/Form1.vb#L33
treeList1.Columns.Add(New TreeListColumn() With {.Caption = "Action", .VisibleIndex = 0, .SortOrder = SortOrder.Ascending})
treeList1.DataSource = treeDataSource
See Also
TreeListColumnCollection Class