A newer version of this page is available. Switch to the current version.

DXCollectionBase<T>.ForEach(Action<T>) Method

Performs the specified action on each element of the DXCollectionBase<T>.

Namespace: DevExpress.Utils

Assembly: DevExpress.Data.v19.2.dll


public void ForEach(
    Action<T> action
Public Sub ForEach(
    action As Action(Of T)


Name Type Description
action Action<T>

The Action<T> delegate to perform on each element of the DXCollectionBase<T>.


The Action<T> is a delegate to a method that performs an action on the object passed to it. The elements of the current DXCollectionBase<T> are individually passed to the Action<T> delegate.

See Also