windowsforms-devexpress-dot-xtrabars-dot-popupmenubase-484bf9d6.md
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
[Browsable(false)]
public virtual BarItemLinkCollection ItemLinks { get; }
<Browsable(False)>
Public Overridable ReadOnly Property ItemLinks As BarItemLinkCollection
| Type | Description |
|---|---|
| BarItemLinkCollection |
A BarItemLinkCollection object containing links owned by the popup menu.
|
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
BarItemLinkCollection itemLinks = popupMenu.ItemLinks;
popupMenu.BeginUpdate();
winforms-spreadsheet-spell-check-cell-text/VB/SpreadsheetSpellchecking/Form1.vb#L50
Dim itemLinks As BarItemLinkCollection = popupMenu.ItemLinks
popupMenu.BeginUpdate()
See Also