Skip to main content
All docs
V24.1

TreeListBandCollection.ForEach(Action<TreeListBand>) Method

Executes the specified action on each element of the collection.

Namespace: DevExpress.XtraTreeList.Columns

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public void ForEach(
    Action<TreeListBand> action
)

Parameters

Name Type Description
action Action<TreeListBand>

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 = column.Caption.ToUpper());
See Also