[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Collapse]PDF Viewer
   [Expand]Getting Started
    Coordinate Systems
   [Expand]Navigation
   [Expand]Access and Edit Document Content
   [Expand]Interactivity
    Deployment
   [Collapse]Examples
    [Expand]Getting Started
    [Expand]Interactive Form
    [Expand]Text Markup Annotations
    [Expand]Interactivity
    [Collapse]Customization
      How to: Replace Standard PDF Viewer Control Command with your own Custom Command
      How to: Add a Custom Bar Button Item to the Popup Menu
      How to: Remove Items from the Popup Menu
    [Expand]Printing
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Remove Items from the Popup Menu

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=T602115.

The PDF Viewer has several types of popup menus that can be invoked by an end-user for bookmark options, bookmark tree, page content, thumbnail and thumbnail options.

This example shows how to hide the popup menu for the bookmark tree and remove specific items from the page content popup menu.

To customize items of the PDF Viewer's popup menu, handle the PdfViewer.PopupMenuShowing event. This event fires every time an end-user opens a popup menu in the PDF Viewer.

Each popup menu type has a unique set of bar items that are located in the bar item link collection. To access this collection, check the popup menu type using the PdfPopupMenuShowingEventArgs.PopupMenuKind property and use the PdfPopupMenuShowingEventArgs.ItemLinks property.

To hide a popup menu, clear all items from the bar item link collection.

To remove an item from a popup menu, find the item by the caption in the bar item link collection and then remove it.

Is this topic helpful?​​​​​​​