# ActionJavaScriptMap

## Content

# Class: ActionJavaScriptMap

The dictionary of [ActionJavaScript](ActionJavaScript) objects.

## Extends

- `PdfStringMap`&lt;[`ActionJavaScript`](ActionJavaScript)&gt;

## Accessors

### count

#### Get Signature

```ts
get count(): number;
```

Gets the number of items in the map.

##### Returns

`number`

#### Overrides

```ts
PdfStringMap.count
```

***

### id

#### Get Signature

```ts
get id(): number;
```

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

```ts
PdfStringMap.id
```

***

### om

#### Get Signature

```ts
get om(): ObjectManager;
```

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

```ts
PdfStringMap.om
```

## Methods

### add()

```ts
add(key, item): void;
```

Adds the item with the specified key.

#### Parameters

##### key

`string`

The item key.

##### item

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

The item to add.

#### Returns

`void`

#### Overrides

```ts
PdfStringMap.add
```

***

### clear()

```ts
clear(): void;
```

Clears the collection.

#### Returns

`void`

#### Overrides

```ts
PdfStringMap.clear
```

***

### contains()

```ts
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

```ts
PdfStringMap.contains
```

***

### free()

```ts
free(): void;
```

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

#### Returns

`void`

#### Inherited from

```ts
PdfStringMap.free
```

***

### get()

```ts
get(key): ActionJavaScript;
```

Gets the item with the specified key.

#### Parameters

##### key

`string`

#### Returns

[`ActionJavaScript`](ActionJavaScript)

#### Overrides

```ts
PdfStringMap.get
```

***

### rebind()

```ts
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

```ts
PdfStringMap.rebind
```

***

### remove()

```ts
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

```ts
PdfStringMap.remove
```

***

### set()

```ts
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

```ts
PdfStringMap.set
```
