windowsforms-devexpress-dot-xtrabars-dot-baritemlink-f2acecdc.md
For internal use only.
Namespace : DevExpress.XtraBars
Assembly : DevExpress.XtraBars.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[Browsable(false)]
public object LinkedObject { get; }
<Browsable(False)>
Public ReadOnly Property LinkedObject As Object
| 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
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
Private Function GetHitInfo(link As BarItemLink) As GridHitInfo
Dim menu As PopupMenu = TryCast(link.LinkedObject, PopupMenu)
Return TryCast(menu.Tag, GridHitInfo)
See Also