Skip to main content
A newer version of this page is available. .
All docs
V21.2

TreeListColumnCollection.ForEach(Action<TreeListColumn>) Method

Executes the specified action on each element of the collection.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.TreeList

Declaration

public void ForEach(
    Action<TreeListColumn> action
)

Parameters

Name Type Description
action Action<TreeListColumn>

The delegate to execute on each element of the collection.

Example

The code below converts all column headers to uppercase.

treeList1.Columns.ForEach(column => column.Caption.ToUpper());
See Also