UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedBookmark

    Show / Hide Table of Contents

    Class PdfLoadedBookmark

    Inheritance
    System.Object
    PdfBookmarkBase
    PdfBookmark
    PdfLoadedBookmark
    Implements
    IPdfWrapper
    System.Collections.IEnumerable
    Inherited Members
    PdfBookmark.Action
    PdfBookmark.IsExpanded
    PdfBookmarkBase.Add(String)
    PdfBookmarkBase.Contains(PdfBookmark)
    PdfBookmarkBase.Remove(String)
    PdfBookmarkBase.RemoveAt(Int32)
    PdfBookmarkBase.Clear()
    PdfBookmarkBase.Insert(Int32, String)
    PdfBookmarkBase.Count
    PdfBookmarkBase.Item[Int32]
    PdfBookmarkBase.IPdfWrapper.Element
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.UWP.dll
    Syntax
    public class PdfLoadedBookmark : PdfBookmark, IPdfWrapper, IEnumerable

    Properties

    Color

    Declaration
    public override PdfColor Color { get; set; }
    Property Value
    Type Description
    PdfColor
    Overrides
    PdfBookmark.Color

    Destination

    Declaration
    public override PdfDestination Destination { get; set; }
    Property Value
    Type Description
    PdfDestination
    Overrides
    PdfBookmark.Destination

    NamedDestination

    Declaration
    public override PdfNamedDestination NamedDestination { get; set; }
    Property Value
    Type Description
    PdfNamedDestination
    Overrides
    PdfBookmark.NamedDestination

    TextStyle

    Declaration
    public override PdfTextStyle TextStyle { get; set; }
    Property Value
    Type Description
    PdfTextStyle
    Overrides
    PdfBookmark.TextStyle

    Title

    Gets or sets the outline title.

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

    The string value which contains title of the bookmark.

    Overrides
    PdfBookmark.Title
    Remarks

    The outline title is the text, which appears in the outline tree as a tree node.

    Examples
    //Load the PDF document.
    PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
    //Get all the bookmarks.
    PdfBookmarkBase bookmarks = loadedDocument.Bookmarks;
    //Get the first bookmark and set the properties of the bookmark.
    PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark;
    bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]);
    bookmark.Color = Color.Green;
    bookmark.TextStyle = PdfTextStyle.Bold;
    bookmark.Title = "Changed title";
    //Save the document
    loadedDocument.Save("Output.pdf");
    //Close the document
    loadedDocument.Close(true);
    'Load the PDF document.
    Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
    'Get all the bookmarks.
    Dim bookmarks As PdfBookmarkBase = document.Bookmarks
    'Get the first bookmark and set the properties of the bookmark.
    Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark)
    bookmark.Destination = New PdfDestination(loadedDocument.Pages(1))
    bookmark.Color = Color.Green
    bookmark.TextStyle = PdfTextStyle.Bold
    bookmark.Title = "Changed title"
    'Save the document
    loadedDocument.Save("Output.pdf")
    'Close the document
    loadedDocument.Close(True)
    See Also
    PdfLoadedDocument
    PdfBookmarkBase

    Implements

    IPdfWrapper
    System.Collections.IEnumerable

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved