Back to Devexpress

PopupMenuBase.ItemLinks Property

windowsforms-devexpress-dot-xtrabars-dot-popupmenubase-484bf9d6.md

latest3.1 KB
Original Source

PopupMenuBase.ItemLinks Property

Provides access to links owned and displayed by the popup menu.

Namespace : DevExpress.XtraBars

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[Browsable(false)]
public virtual BarItemLinkCollection ItemLinks { get; }
vb
<Browsable(False)>
Public Overridable ReadOnly Property ItemLinks As BarItemLinkCollection

Property Value

TypeDescription
BarItemLinkCollection

A BarItemLinkCollection object containing links owned by the popup menu.

|

Remarks

Use the ItemLinks property to add, remove or modify links owned by the popup menu. These links are displayed at the root level of the popup menu.

You can also use the PopupMenuBase.AddItem, PopupMenuBase.InsertItem, PopupMenuBase.RemoveLink, etc. methods to manipulate the link collection. These methods are equivalent to methods provided by the ItemLinks collection.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ItemLinks 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-spreadsheet-spell-check-cell-text/CS/SpreadsheetSpellchecking/Form1.cs#L45

csharp
BarItemLinkCollection itemLinks = popupMenu.ItemLinks;
popupMenu.BeginUpdate();

winforms-spreadsheet-spell-check-cell-text/VB/SpreadsheetSpellchecking/Form1.vb#L50

vb
Dim itemLinks As BarItemLinkCollection = popupMenu.ItemLinks
popupMenu.BeginUpdate()

See Also

PopupMenuBase Class

PopupMenuBase Members

DevExpress.XtraBars Namespace