BaseContentContainer.GetEnumerator(IContentContainer, Predicate<IContentContainer>, Int32) Method

Gets an enumerator that goes down the BaseContentContainer‘s hierarchy and iterates the children that meet a specific set of criteria.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v21.1.dll

Declaration

public static IEnumerator<IContentContainer> GetEnumerator(
    IContentContainer container,
    Predicate<IContentContainer> filter,
    int level
)

Parameters

Name Type Description
container DevExpress.XtraBars.Docking2010.Views.WindowsUI.IContentContainer

A BaseContentContainer to be iterated through.

filter Predicate<DevExpress.XtraBars.Docking2010.Views.WindowsUI.IContentContainer>

A Predicate object that is the method that defines a set of criteria and determines whether a BaseContentContainer‘s child meets those criteria.

level Int32

An Int32 value that specifies how far down the BaseContentContainer‘s hierarchy an enumerator should go to reach the required container’s children.

Returns

Type Description
IEnumerator<DevExpress.XtraBars.Docking2010.Views.WindowsUI.IContentContainer>

An IEnumerator that goes down the BaseContentContainer‘s hierarchy and iterates the children that meet a specific set of criteria.

See Also