Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BarCustomContainerItem.ContainsItem(BarItem) Method

Returns whether the current container item owns the link which refers to the specified item.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public override bool ContainsItem(
    BarItem item
)

#Parameters

Name Type Description
item BarItem

A BarItem object representing the item to locate.

#Returns

Type Description
Boolean

true if the container item contains a link referring to the specified item; otherwise, false.

#Remarks

The ContainsItem method performs a recursive search within the container item’s links. If any link is found that refers to the specified item, the search succeeds and the function returns true. Otherwise, the function returns false.

All links owned by the container item can be accessed via the BarCustomContainerItem.ItemLinks property.

See Also