File Formats

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

    Show / Hide Table of Contents

    Class PdfLoadedNamedDestination

    Represents the loaded named destination class.

    Inheritance
    System.Object
    PdfNamedDestination
    PdfLoadedNamedDestination
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Pdf.Interactive
    Assembly: Syncfusion.Pdf.Base.dll
    Syntax
    public class PdfLoadedNamedDestination : PdfNamedDestination, IPdfWrapper
    Examples
    //Load the PDF document.
    PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
    //Get all the named destinations.
    PdfNamedDestinationCollection namedCollections = loadedDocument.NamedDestinationCollection;
    //Get the first named destination
    PdfLoadedNamedDestination namedDestination = namedCollections[0] as PdfLoadedNamedDestination;
    //Get the destination
    PdfDestination dest = namedDestination.Destination;
    //Save and close the document
    loadedDocument.Save("Output.pdf");
    loadedDocument.Close(true);
    'Load the PDF document.
    Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
    'Get all the named destinations.
    Dim namedCollections As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection
    'Get the first named destination
    Dim namedDestination As PdfLoadedNamedDestination = TryCast(namedCollections(0), PdfLoadedNamedDestination)
    'Get the destination
    Dim destination As PdfDestination = namedDestination.Destination
    'Save and close the document
    loadedDocument.Save("Output.pdf")
    loadedDocument.Close(True)

    Properties

    Destination

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

    Title

    Gets or sets the named destination title.

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

    A string value which contains the named destination title

    Overrides
    PdfNamedDestination.Title
    Examples
    //Load the PDF document.
    PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf");
    //Get all the named destinations.
    PdfNamedDestinationCollection namedCollections = loadedDocument.NamedDestinationCollection;
    //Get the first named destination
    PdfLoadedNamedDestination namedDestination = namedCollections[0] as PdfLoadedNamedDestination;
    //Get the named destination title.
    string title = namedDestination.Title;
    //Save and close the document
    loadedDocument.Save("Output.pdf");
    loadedDocument.Close(true);
    'Load the PDF document.
    Dim loadedDocument As New PdfLoadedDocument("Input.pdf")
    'Get all the named destinations.
    Dim namedCollections As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection
    'Get the first named destination
    Dim namedDestination As PdfLoadedNamedDestination = TryCast(namedCollections(0), PdfLoadedNamedDestination)
    'Get the named destination title.
     Dim title As String = namedDestination.Title
    'Save and close the document
    loadedDocument.Save("Output.pdf")
    loadedDocument.Close(True)
    See Also
    PdfLoadedDocument
    PdfNamedDestinationCollection
    PdfDestination

    See Also

    PdfLoadedDocument
    PdfNamedDestinationCollection
    PdfDestination
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved