Skip to main content

PdfBookmark Class

Definition

Assembly:Avalonia.Controls.PdfViewer
Package:Avalonia.Controls.PdfViewer

Bookmark (outline item) in a PDF document.

public class PdfBookmark

Inheritance: object -> PdfBookmark

Constructors

NameDescription
PdfBookmarkNo summary available.

PdfBookmark Constructor

public PdfBookmark(string title, Nullable<int> pageIndex, System.Collections.Generic.IReadOnlyList<Avalonia.Controls.Pdf.Core.PdfBookmark> children)

Parameters

title string

pageIndex Nullable<int>

children System.Collections.Generic.IReadOnlyList<Avalonia.Controls.Pdf.Core.PdfBookmark>

Properties

NameDescription
ChildrenChild bookmarks.
DestinationThe bookmark's full destination when it has one: the page plus the position and zoom of an /XYZ, /FitH, /FitV or /FitR view. Null for bookmarks without a page target.
IsExpandedWhether this bookmark is expanded by default.
PageIndexTarget page index (0-based), or null if external/unsupported.
TitleBookmark title.

Children Property

Child bookmarks.

public System.Collections.Generic.IReadOnlyList<Avalonia.Controls.Pdf.Core.PdfBookmark> Children { get; set; }

Destination Property

The bookmark's full destination when it has one: the page plus the position and zoom of an /XYZ, /FitH, /FitV or /FitR view. Null for bookmarks without a page target.

public Avalonia.Controls.Pdf.Core.PdfLinkDestination.PageDestination Destination { get; set; }

IsExpanded Property

Whether this bookmark is expanded by default.

public bool IsExpanded { get; set; }

PageIndex Property

Target page index (0-based), or null if external/unsupported.

public Nullable<int> PageIndex { get; set; }

Title Property

Bookmark title.

public string Title { get; set; }