# McidContentItemLink

## Content

# Class: McidContentItemLink

Represents a content item specified via MCID and owning a [StructElement](StructElement).

## Extends

- [`ContentItemLink`](ContentItemLink)

## Constructors

### Constructor

```ts
new McidContentItemLink(mcid): McidContentItemLink;
```

Creates a new McidContentItemLink.

#### Parameters

##### mcid

`number`

The identifier of a Marked Content Sequence in the page specified by
[StructElement#defaultPage](StructElement#defaultpage).

#### Returns

`McidContentItemLink`

#### Overrides

```ts
ContentItemLink.constructor
```

## Accessors

### id

#### Get Signature

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

Gets the reference to the object.

##### Returns

`number`

#### Inherited from

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

***

### mcid

#### Get Signature

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

Gets the identifier of a Marked Content Sequence in the page specified by
[StructElement#defaultPage](StructElement#defaultpage).

##### Returns

`number`

***

### om

#### Get Signature

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

Gets the owner [ObjectManager](ObjectManager) instance.

##### Returns

[`ObjectManager`](ObjectManager)

#### Inherited from

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

## Methods

### free()

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

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

#### Returns

`void`

#### Inherited from

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

***

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

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