Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfPopupMenuShowingEventArgs.ItemLinks Property

Gets the collection of popup menu links displayed when the menu is being invoked.

Namespace: DevExpress.XtraPdfViewer

Assembly: DevExpress.XtraPdfViewer.v24.2.dll

NuGet Package: DevExpress.Win.PdfViewer

#Declaration

#Property Value

Type Description
BarItemLinkCollection

A BarItemLinkCollection object that contains links to a popup menu.

#Example

This example demonstrates how to add a custom item to the popup menu.

new item

using DevExpress.XtraBars;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraPdfViewer;
using System.Windows.Forms;
//...

void pdfViewer1_PopupMenuShowing(object sender, PdfPopupMenuShowingEventArgs e) {

    // Create a bar button item.
    BarButtonItem browseBarButton = new BarButtonItem();
    browseBarButton.Caption = "Custom Item";

    // Insert the bar button item 
    // and start a new group.
    e.ItemLinks.Add(browseBarButton, true);

    // Handle the bar button click event.
    browseBarButton.ItemClick += browseBarButton_ItemClick;
}

void browseBarButton_ItemClick(object sender, ItemClickEventArgs e) {
    MessageBox.Show("ItemClick event fires");
}
See Also