# ActionJavaScriptMap

## Content

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

***

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

# Class: ActionJavaScriptMap

The dictionary of [ActionJavaScript](ActionJavaScript) objects.

## Extends

- `PdfStringMap`\<[`ActionJavaScript`](ActionJavaScript)\>

## Accessors

### count

#### Get Signature

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

Gets the number of items in the map.

##### Returns

`number`

#### Overrides

`PdfStringMap.count`

***

### id

#### Get Signature

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

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

`PdfStringMap.id`

***

### om

#### Get Signature

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

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

`PdfStringMap.om`

## Methods

### add()

> **add**(`key`, `item`): `void`

Adds the item with the specified key.

#### Parameters

##### key

`string`

The item key.

##### item

The item to add.

`string` | [`ActionJavaScriptProperties`](../type-aliases/ActionJavaScriptProperties) | [`ActionJavaScript`](ActionJavaScript)

#### Returns

`void`

#### Overrides

`PdfStringMap.add`

***

### clear()

> **clear**(): `void`

Clears the collection.

#### Returns

`void`

#### Overrides

`PdfStringMap.clear`

***

### contains()

> **contains**(`key`): `boolean`

Determines whether the specified key is in the collection.

#### Parameters

##### key

`string`

#### Returns

`boolean`

true if the key is in the collection, false otherwise.

#### Overrides

`PdfStringMap.contains`

***

### free()

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

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

#### Returns

`void`

#### Inherited from

`PdfStringMap.free`

***

### get()

> **get**(`key`): [`ActionJavaScript`](ActionJavaScript) \| `undefined`

Gets the item with the specified key.

#### Parameters

##### key

`string`

#### Returns

[`ActionJavaScript`](ActionJavaScript) \| `undefined`

#### Overrides

`PdfStringMap.get`

***

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

`PdfStringMap.rebind`

***

### remove()

> **remove**(`key`): `boolean`

Removes the item with specified key from the collection.

#### Parameters

##### key

`string`

The key to remove.

#### Returns

`boolean`

true if the item with specified key was actually removed, false otherwise.

#### Overrides

`PdfStringMap.remove`

***

### set()

> **set**(`key`, `item`): `void`

Sets the item with the specified key.

#### Parameters

##### key

`string`

The item key.

##### item

[`ActionJavaScript`](ActionJavaScript)

The object to set.

#### Returns

`void`

#### Overrides

`PdfStringMap.set`
