# GoToAction Class

> A go-to action can be executed in a PDF 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/GoToAction
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class GoToAction : Action
```

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

**Inherits from:** [`Action`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Action.md)

## Description

A go-to action can be executed in a PDF document.

A go-to action includes a hyperlink that, when clicked, takes the reader to a different place within the same document.

The action is linked to a bookmark within the document.

A remote go-to action includes a hyperlink that takes the reader to a destination in a separate document.

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

## Constructors

### GoToAction

```csharp
Datalogics.PDFL.GoToAction.GoToAction(Document doc, string namedDestination)
```

*constructor*

**Parameters**

- `doc` ([`Document`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Document.md)): Document in which the action is created.
- `namedDestination` (`string`): The destination name to store in the action's /D entry.

Construct a GoTo action that refers to a named destination.

The named destination is not resolved at construction time; the viewer looks it up in the document's /Names/Dests name tree (or /Dests dict) when the action fires.

### GoToAction

```csharp
Datalogics.PDFL.GoToAction.GoToAction(ViewDestination dest)
```

*constructor*

**Parameters**

- `dest` ([`ViewDestination`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/ViewDestination.md)): The ViewDestination contained in this class.

General constructor

## Properties

### Destination

```csharp
ViewDestination Datalogics.PDFL.GoToAction.Destination { get; set; }
```

The ViewDestination that this go-to action navigates to.

### PDFDict

```csharp
PDFDict Datalogics.PDFL.Action.PDFDict { get; }
```

Retrieve the PDFObject representation of this object.

### Subtype

```csharp
string Datalogics.PDFL.Action.Subtype { get; }
```

The action's subtype.

## Methods

### Dispose

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

**Returns:** `void`

### Equals

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

**Parameters**

- `obj` (`object`)

**Returns:** `override bool`

### ToString

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

**Returns:** `override string`

A string describing this Action.

Returns a string representation of this Action.

The string includes the action's subtype.
