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.v19.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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ContainsItem(BarItem) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.