Back to Devexpress

BarItemLink.LinkedObject Property

windowsforms-devexpress-dot-xtrabars-dot-baritemlink-f2acecdc.md

latest2.2 KB
Original Source

BarItemLink.LinkedObject Property

For internal use only.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

Type
Object

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the LinkedObject 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-grid-show-context-menu-for-rows/CS/FormGridMenu.cs#L22

csharp
GridHitInfo GetHitInfo(BarItemLink link) {
    PopupMenu menu = link.LinkedObject as PopupMenu;
    return menu.Tag as GridHitInfo;

winforms-grid-show-context-menu-for-rows/VB/FormGridMenu.vb#L23

vb
Private Function GetHitInfo(link As BarItemLink) As GridHitInfo
    Dim menu As PopupMenu = TryCast(link.LinkedObject, PopupMenu)
    Return TryCast(menu.Tag, GridHitInfo)

See Also

BarItemLink Class

BarItemLink Members

DevExpress.XtraBars Namespace