# Action Class

> When a user clicks a link or bookmark in a PDF, an action occurs, moving the reader to a new location.

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

```csharp
class Action : SystemIDisposable
```

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

**Inherits from:** `SystemIDisposable`

**Derived classes:** [`GoToAction`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/GoToAction.md), [`LaunchAction`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/LaunchAction.md), [`RemoteGoToAction`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/RemoteGoToAction.md), [`URIAction`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/URIAction.md)

## Description

When a user clicks a link or bookmark in a PDF, an action occurs, moving the reader to a new location.

An action can involve moving the reader to a new page in the file, for example.

Also, with a PDF Viewer a PDF file can have an Action that runs automatically when a user opens the file, or reaches a specific page.

Applications can support Actions in custom annotation types they add. Only GoTo and URI Actions are supported; you can only use an Action with the interface to move from one part of a file to another or open an external web page.

**Referenced by:** [`Bookmark`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Bookmark.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), [`PDFDict`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/PDFDict.md)

## Constructors

### Action

```csharp
Datalogics.PDFL.Action.Action(Document doc, string type)
```

*constructor*

**Parameters**

- `doc` ([`Document`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Document.md)): The document in which the action is created.
- `type` (`string`): The string corresponding to the action's subtype.

Creates a new action object.

## Properties

### 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.
