menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PdfLoadedNamedDestination - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PdfLoadedNamedDestination

    Represents the loaded named destination class.

    Inheritance
    System.Object
    PdfNamedDestination
    PdfLoadedNamedDestination
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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

    Gets or sets the named destination's destination.

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

    The PdfDestination object which is to be navigated.

    Overrides
    PdfNamedDestination.Destination
    Remarks

    The destination property has to be mentioned as multiples of 100. If we mention as 2, the zoom value will be 200.

    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)
    See Also
    PdfLoadedDocument
    PdfNamedDestinationCollection
    PdfDestination

    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 - 2025 Syncfusion Inc. All Rights Reserved