Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXObservableCollection<T>.ForEach(Action<T>, 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

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

#Parameters

Name Type Description
action Action<T>

The operation that affects each item in the collection.

#Optional Parameters

Name Type Default Description
parallel Boolean False

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

See Also