Back to Devexpress

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

corelibraries-devexpress-dot-utils-dot-dxcollectionbase-1-dot-foreach-x28-system-dot-action-0-x29.md

latest1.7 KB
Original Source

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

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

Namespace : DevExpress.Utils

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

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

Parameters

NameTypeDescription
actionAction<T>

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

|

Remarks

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

DXCollectionBase<T> Class

DXCollectionBase<T> Members

DevExpress.Utils Namespace