# ViewDestination Class

> Represents a particular view of a page in a document.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/ViewDestination
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class ViewDestination : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

Represents a particular view of a page in a document.

A destination describes a place in the PDF document where the user will be taken in response to clicking a hyperlink. The destination defines where a bookmark or hyperlink points to.

The ViewDestination contains a reference to a page, a place (rectangle) on that page, and information specifying how to adjust the view to fit the window's size and shape.

**Referenced by:** [`Bookmark`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Bookmark.md), [`GoToAction`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/GoToAction.md), [`LinkAnnotation`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/LinkAnnotation.md)

**Uses types:** [`Document`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Document.md), [`PDFArray`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/PDFArray.md), [`Rect`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Rect.md)

## Constructors

### ViewDestination

```csharp
Datalogics.PDFL.ViewDestination.ViewDestination(Document doc, int pageNum, string fitType, Rect r, double zoom)
```

*constructor*

**Parameters**

- `doc` ([`Document`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Document.md)): Containing document
- `pageNum` (`int`): Target page number
- `fitType` (`string`): Fit Type must be: "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", or "FitBV".
- `r` ([`Rect`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Rect.md)): Target rectangle
- `zoom` (`double`): Zoom level

General purpose constructor: construct with all elements

**Exceptions**

- `ApplicationException`: fitType could not be converted to a legal fit type atom.

## Properties

### DestRect

```csharp
Rect Datalogics.PDFL.ViewDestination.DestRect { get; set; }
```

The destination rectangle.

Coordinates with a value of NullValue indicate that the corresponding coordinate is not specified in the destination.

### FitType

```csharp
string Datalogics.PDFL.ViewDestination.FitType { get; set; }
```

The fit type describing how the destination page is displayed.

The fit type determines how the page content is fitted into the window. Valid fit types are: "XYZ", "Fit", "FitH", "FitV", "FitR", "FitB", "FitBH", and "FitBV".

**Exceptions**

- `ApplicationException`: fitType could not be converted to a legal fit type atom.

### PDFArray

```csharp
PDFArray Datalogics.PDFL.ViewDestination.PDFArray { get; }
```

Retrieve the PDFArray representation of this ViewDestination.

### PageNumber

```csharp
int Datalogics.PDFL.ViewDestination.PageNumber { get; set; }
```

The page number of the destination.

### Zoom

```csharp
double Datalogics.PDFL.ViewDestination.Zoom { get; set; }
```

The zoom factor for the destination.

A value of NullValue indicates that the zoom factor is not specified.

## Fields

### CViewDestination_NullValue

```csharp
static const double Datalogics.PDFL.ViewDestination.CViewDestination_NullValue
```

*static*

Constant used for "null" values in destination rectangles or zoom.

### NULL_VALUE

```csharp
static const double Datalogics.PDFL.ViewDestination.NULL_VALUE
```

*static*

### NullValue

```csharp
static const double Datalogics.PDFL.ViewDestination.NullValue
```

*static*

## Methods

### Dispose

```csharp
void Datalogics.PDFL.ViewDestination.Dispose()
```

**Returns:** `void`

### Equals

```csharp
override bool Datalogics.PDFL.ViewDestination.Equals(object obj)
```

**Parameters**

- `obj` (`object`)

**Returns:** `override bool`

### ToString

```csharp
override string Datalogics.PDFL.ViewDestination.ToString()
```

**Returns:** `override string`

A formatted string describing this ViewDestination.

Return a string representation of the ViewDestination.

The string includes the page number, fit type, destination rectangle, and zoom factor.
