Search Results for

    Show / Hide Table of Contents

    Class PdfBookMark

    Represents a PDF bookmark as seen in the sidebar of PDF reader software to help user's navigate.

    Inheritance
    System.Object
    PdfBookMark
    Namespace: IronPdf.Bookmarks
    Assembly: IronPdf.dll
    Syntax
    public class PdfBookMark : Object, IPdfBookmark

    Properties

    Bottom

    Declaration
    public int Bottom { get; }
    Property Value
    Type Description
    System.Int32

    Children

    Bookmarks contained under this bookmark

    Declaration
    public IPdfBookMarkCollection Children { get; }
    Property Value
    Type Description
    IPdfBookMarkCollection

    DestinationType

    Type of destination represented by the bookmark

    Declaration
    public virtual BookmarkDestinations DestinationType { get; }
    Property Value
    Type Description
    BookmarkDestinations

    Left

    Declaration
    public int Left { get; }
    Property Value
    Type Description
    System.Int32

    NextBookmark

    Next bookmark at the current level, if any

    Declaration
    public IPdfBookmark NextBookmark { get; }
    Property Value
    Type Description
    IronPdf.Bookmarks.IPdfBookmark

    PageIndex

    The zero based page number that the bookmark links to.

    Declaration
    public int PageIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    The index of the page.

    Parent

    Bookmark which contains this bookmark

    Declaration
    public IPdfBookmark Parent { get; }
    Property Value
    Type Description
    IronPdf.Bookmarks.IPdfBookmark

    ParentText

    Parent bookmark text

    Declaration
    public string ParentText { get; set; }
    Property Value
    Type Description
    System.String

    PreviousBookmark

    Previous bookmark at the current level, if any

    Declaration
    public IPdfBookmark PreviousBookmark { get; }
    Property Value
    Type Description
    IronPdf.Bookmarks.IPdfBookmark

    PreviousText

    Previous bookmark text

    Declaration
    public string PreviousText { get; set; }
    Property Value
    Type Description
    System.String

    Right

    Declaration
    public int Right { get; }
    Property Value
    Type Description
    System.Int32

    Siblings

    Bookmarks contained at the same level and under the same parent as this bookmark

    Declaration
    public IPdfBookMarkCollection Siblings { get; }
    Property Value
    Type Description
    IPdfBookMarkCollection

    Text

    The display text of the bookmark

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    Top

    Declaration
    public int Top { get; }
    Property Value
    Type Description
    System.Int32

    Zoom

    Declaration
    public int Zoom { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    InsertBookMarkAfter(String, Int32)

    Insert a new bookmark after the specified bookmark

    Declaration
    public IPdfBookmark InsertBookMarkAfter(string text, int pageIndex)
    Parameters
    Type Name Description
    System.String text

    The display text for the link.

    System.Int32 pageIndex

    The zero based page number to link to. E.g. Page 1 has a PageIndex of 0

    Returns
    Type Description
    IronPdf.Bookmarks.IPdfBookmark

    InsertBookMarkBefore(String, Int32)

    Insert a new bookmark after the specified bookmark

    Declaration
    public IPdfBookmark InsertBookMarkBefore(string text, int pageIndex)
    Parameters
    Type Name Description
    System.String text

    The display text for the link.

    System.Int32 pageIndex

    The zero based page number to link to. E.g. Page 1 has a PageIndex of 0

    Returns
    Type Description
    IronPdf.Bookmarks.IPdfBookmark
    ☀
    ☾
    Downloads
    • Download with Nuget
    • Start for Free
    In This Article
    Back to top
    Install with Nuget
    Want to deploy IronPDF to a live project for FREE?
    What’s included?
    30 days of fully-functional product
    Test and share in a live environment
    No watermarks in production
    Get your free 30-day Trial Key instantly.
    No credit card or account creation required
    Your Trial License Key has been emailed to you.
    Download IronPDF free to apply
    your Trial Licenses Key
    Install with NuGet View Licenses
    Licenses from $499. Have a question? Get in touch.