# ActionGoTo

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / ActionGoTo

# Class: ActionGoTo

Represents an action that changes the view to a destination (page, location, and magnification factor)
specified by a [DestinationBase](DestinationBase) object.

## Extends

- [`ActionBase`](ActionBase)

## Constructors

### Constructor

> **new ActionGoTo**(`om`, `dest?`): `ActionGoTo`

Initialize a new instance of the ActionGoTo class.

#### Parameters

##### om

[`ObjectManager`](ObjectManager)

[ObjectManager](ObjectManager) that controls the lifetime of the ActionGoTo.

##### dest?

The destination object defining the new document view.

[`DestinationProperties`](../type-aliases/DestinationProperties) | [`DestinationBase`](DestinationBase)

#### Returns

`ActionGoTo`

#### Overrides

`ActionBase.constructor`

### Constructor

> **new ActionGoTo**(`dest?`): `ActionGoTo`

Initialize a new instance of the ActionGoTo class.

#### Parameters

##### dest?

The destination object defining the new document view.

[`DestinationProperties`](../type-aliases/DestinationProperties) | [`DestinationBase`](DestinationBase)

#### Returns

`ActionGoTo`

#### Overrides

`ActionBase.constructor`

## Accessors

### dest

#### Get Signature

> **get** **dest**(): [`DestinationBase`](DestinationBase) \| `null`

Gets or sets the destination object defining the new document view.

##### Returns

[`DestinationBase`](DestinationBase) \| `null`

#### Set Signature

> **set** **dest**(`value`): `void`

Gets or sets the destination object defining the new document view.

##### Parameters

###### value

[`DestinationProperties`](../type-aliases/DestinationProperties) | [`DestinationBase`](DestinationBase) | `null`

##### Returns

`void`

***

### id

#### Get Signature

> **get** **id**(): `number`

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

[`ActionBase`](ActionBase).[`id`](ActionBase#id)

***

### om

#### Get Signature

> **get** **om**(): [`ObjectManager`](ObjectManager)

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

[`ActionBase`](ActionBase).[`om`](ActionBase#om)

## Methods

### free()

> **free**(): `void`

Detaches the object from the [ObjectManager](ObjectManager) and deallocates its memory, if possible.

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`free`](ActionBase#free)

***

### rebind()

> **rebind**(`omTo`): `void`

Rebinds the object from the current [ObjectManager](ObjectManager) to the specified one.

#### Parameters

##### omTo

[`ObjectManager`](ObjectManager)

The new [ObjectManager](ObjectManager) for the object.

#### Returns

`void`

#### Inherited from

[`ActionBase`](ActionBase).[`rebind`](ActionBase#rebind)
