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

BootstrapMenuItemCollection.FindAllRecursive(Predicate<BootstrapMenuItem>) Method

Returns all elements that match the conditions defined by the specified predicate.

Namespace: DevExpress.Web.Bootstrap

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

Declaration

public IEnumerable<BootstrapMenuItem> FindAllRecursive(
    Predicate<BootstrapMenuItem> match
)
Public Function FindAllRecursive(
    match As Predicate(Of BootstrapMenuItem)
) As IEnumerable(Of BootstrapMenuItem)

Parameters

Name Type Description
match Predicate<BootstrapMenuItem>

A delegate that defines the conditions of the elements to search for.

Returns

Type Description
IEnumerable<BootstrapMenuItem>

A collection of the elements that match the conditions defined by the predicate.

Remarks

The FindAllRecursive method individually passes elements of the current hierarchical collection to a predicate, and returns a collection of elements that match the predicate. A predicate is a delegate to a method that returns true if the object passed to it matches the conditions defined in the delegate; otherwise the method returns false.

See Also