XYZExplicitDestination Class
Represents explicit destination that displays the page with the coordinates (left, top) positioned at the upper-left corner of the window and the contents of the page magnified by the factor zoom. A null value for any of the parameters left, top, or zoom specifies that the current value of that parameter is to be retained unchanged. A zoom value of 0 has the same meaning as a null value.
Inheritance Hierarchy

Namespace: Aspose.Pdf.Annotations
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.3
Syntax
public sealed class XYZExplicitDestination : ExplicitDestination

The XYZExplicitDestination type exposes the following members.

Constructors
  NameDescription
Public methodXYZExplicitDestination(Int32, Double, Double, Double)
Creates remote explicit destination.
Public methodXYZExplicitDestination(Page, Double, Double, Double)
Creates local explicit destination.
Public methodXYZExplicitDestination(Document, Int32, Double, Double, Double) Obsolete.
Creates remote explicit destination.
Properties
  NameDescription
Public propertyLeft
Gets left horizontal coordinate of the upper-left corner of the window.
Public propertyPage
Gets the destination page object
(Inherited from ExplicitDestination.)
Public propertyPageNumber
Gets the destination page number
(Inherited from ExplicitDestination.)
Public propertyTop
Gets top vertical coordinate of the upper-left corner of the window.
Public propertyZoom
Gets zoom factor.
Methods
  NameDescription
Public methodStatic memberCreateDestination
Create destintion to specified location of the page considering page rotation if required.
Public methodStatic memberCreateDestinationToUpperLeftCorner(Page)
Create destination to specified page.
Public methodStatic memberCreateDestinationToUpperLeftCorner(Page, Double)
Create destionation to upper left corner of the specifed page.
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodToString
Converts the object state into string value. Example: "1 XYZ 100 200 3".
(Overrides ExplicitDestinationToString.)
Examples
C#
Document doc = new Document("example.pdf");
XYZExplicitDestination dest = (XYZExplicitDestination)doc.Outlines[1].Destination;
string left = dest.Left;
string top = dest.Top;
string zoom = dest.Zoom;
See Also