Skip to content

PdfDocumentOutlineView.ShowDefaultContextMenu Property

Gets of sets a flag indicating whether the default context menu should be displayed when right-clicking on an outline item.

C#
public bool ShowDefaultContextMenu { get; set; }

Property Value

Boolean

True if default context menu should be displayed when the user right-clicks on an outline item.

Remarks

Setting this property to true enables the default context menu for outline items, allowing users to add, edit, or delete outline items. Setting it to false disables the default context menu, allowing for custom context menu implementations.
The default context menu is shown in the image below: The following options are available in the default context menu:

The Edit outline item menu item (Edit outline item) allows the user to edit the properties of an outline item. The following options are available:

  • Edit title — Edits the outline item title. When the user clicks this option the outline item title becomes editable in the document outline view. ENTER key commits the changes, ESC key cancels the changes.

  • Edit font style — Edit the font style used to display the outline item. Regular, bold, italic and bold-italic options are available.

  • Edit color — Edit the color used to display the outline item. A predefined set of colors is available.