Back to Devexpress

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

maui-devexpress-dot-maui-dot-mvvm-dot-dxobservablecollection-1-dot-foreach-x28-system-dot-action-0-system-dot-int32-system-dot-boolean-x29.md

latest1.4 KB
Original Source

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

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

Parameters

NameTypeDescription
actionAction<T, Int32>

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

|

Optional Parameters

NameTypeDefaultDescription
parallelBooleanFalse

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

|

See Also

DXObservableCollection<T> Class

DXObservableCollection<T> Members

DevExpress.Maui.Mvvm Namespace