NamedDestination
Overview
NamedDestination is a class in Aspose.PDF FOSS for .NET.
Inherits from: Aspose.Pdf.Annotations.IAppointment.
Represents a named destination in the document (PDF32000 §12.3.2.3).
This class provides 8 methods for working with NamedDestination objects in .NET programs.
Available methods include: CreateFitDestination, CreateFitHDestination, CreateFitRDestination, CreateFitVDestination, CreateXYZDestination, NamedDestination, ToString.
All public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Bottom, Left, Name, PageIndex, PageNumber, Right, and 3 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Name | string | Read | The destination name. |
PageIndex | int | Read | Target page index (0-based), or -1 if not resolved. |
PageNumber | int | Read | Target page number (1-based), or 0 if not resolved. |
Type | string | Read | Destination type (“Fit”, “XYZ”, “FitH”, etc.). |
Left | double? | Read | Left coordinate (for XYZ, FitV, FitR, FitBV), or null. |
Top | double? | Read | Top coordinate (for XYZ, FitH, FitR, FitBH), or null. |
Right | double? | Read | Right coordinate (for FitR only), or null. |
Bottom | double? | Read | Bottom coordinate (for FitR only), or null. |
Zoom | double? | Read | Zoom factor (for XYZ only; null = inherit current). |
Methods
| Signature | Description |
|---|---|
NamedDestination(name: string) | Create a named destination reference (name only, destination details resolved later). |
NamedDestination(document: Document, name: string) | Create a named destination reference scoped to a document. |
CreateFitDestination(pageIndex: int) | Create a /Fit destination: display the page scaled to fit entirely within the window. |
CreateFitHDestination(pageIndex: int, top: double) | Create a /FitH destination: display the page with vertical position top at the top of the window and magnification set to fit the width. |
CreateFitVDestination(pageIndex: int, left: double) | Create a /FitV destination: display the page with horizontal position left at the left of the window and magnification set to fit the height. |
CreateXYZDestination(pageIndex: int, left: double, top: double, zoom: double) | Create an /XYZ destination: display the page at position (left, top) with zoom factor zoom. |
CreateFitRDestination(pageIndex: int, left: double, bottom: double, right: double, top: double) | Create a /FitR destination: display the page zoomed to fit the rectangle specified by (left, bottom, right, top). |
ToString() | Human-readable representation of this appointment target. |