Skip to main content

DXObservableCollection<T>.ForEach(Action<T, Int32>, Boolean) Method

Iterates through each item in the DXObservableCollection<T> and performs the specified action.

Namespace: DevExpress.Maui.Mvvm

Assembly: DevExpress.Maui.Mvvm.dll

NuGet Package: DevExpress.Maui.Mvvm

Declaration

public void ForEach(
    Action<T, int> action,
    bool parallel = false
)

Parameters

Name Type Description
action Action<T, Int32>

The operation that affects each item in the collection. The second action parameter is the item index.

Optional Parameters

Name Type Default Description
parallel Boolean False

true if the method uses parallel processing for large datasets; otherwise false.

See Also