Skip to content

PdfDocumentOutlineView.SelectedOutlineItem Property

Gets or sets the currently selected outline item in the outline view.

C#
public PdfVisualOutlineItem SelectedOutlineItem { get; set; }

Property Value

PdfVisualOutlineItem

The PdfVisualOutlineItem object that is currently selected in the outline view.

Remarks

Setting this property will update the selection in the outline view to the specified outline item. If the specified outline item is not found in the outline, the selection will be cleared.

Example

The code below shows how to programmatically select the first outline item in the outline view.

C#
PdfVisualOutlineItem firstItem = visualDocument.VisualOutline[0];
documentOutlineView.SelectedOutlineItem = firstItem;