Back to Devexpress

BarItemLink.Item Property

windowsforms-devexpress-dot-xtrabars-dot-baritemlink-96f0c476.md

latest2.7 KB
Original Source

BarItemLink.Item Property

Returns a BarItem to which the current item link corresponds.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public BarItem Item { get; }
vb
<Browsable(False)>
Public ReadOnly Property Item As BarItem

Property Value

TypeDescription
BarItem

A BarItem to which the current item link corresponds.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Item property.

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.

winforms-dashboard-custom-items-extension/CS/CustomItemExtension/CustomItems/SankeyChart/SankeyItemExtensionModule.cs#L41

csharp
RibbonPageGroup interactivityGroup = page.Groups[1];
BarItem drillDownBarItem = interactivityGroup.ItemLinks[2].Item;
interactivityGroup.ItemLinks.Remove(drillDownBarItem);

winforms-dashboard-custom-items-extension/VB/CustomItemExtension/CustomItems/TreeList/TreeListItemExtensionModule.vb#L44

vb
Dim interactivityGroup As RibbonPageGroup = page.Groups(1)
Dim drillDownBarItem As BarItem = interactivityGroup.ItemLinks(2).Item
interactivityGroup.ItemLinks.Remove(drillDownBarItem)

See Also

BarItemLink Class

BarItemLink Members

DevExpress.XtraBars Namespace