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

BootstrapMenuItemCollection.ForEach(Action<BootstrapMenuItem>) Method

Performs the specified action on each element of the BootstrapMenuItemCollection.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v18.2.dll

Declaration

public BootstrapMenuItemCollection ForEach(
    Action<BootstrapMenuItem> action
)
Public Function ForEach(
    action As Action(Of BootstrapMenuItem)
) As BootstrapMenuItemCollection

Parameters

Name Type Description
action Action<BootstrapMenuItem>

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

Returns

Type Description
BootstrapMenuItemCollection

A BootstrapMenuItemCollection object that represents the processed item collection.

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 BootstrapMenuItemCollection are individually passed to the Action<T> delegate.

See Also