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
Declaration
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