> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Other classes: Other

## `CustomProperty`

`PowerPoint.CustomProperty`: one user-defined property in docProps/custom.xml.

Import from `@reductoai/pptx/officejs`.

### CustomProperty properties

| Name | Type | Description |
| - | - | - |
| `key` | `string` | read-only |
| `type` | `DocumentPropertyType` | read-only |
| `value` | `CustomPropertyValue` | |

### `CustomProperty.delete()`

```ts theme={null}
delete(): void
```

## `CustomPropertyCollection`

`PowerPoint.CustomPropertyCollection`. Keys match without regard to case.

Import from `@reductoai/pptx/officejs`.

### CustomPropertyCollection properties

| Name | Type | Description |
| - | - | - |
| `items` | `CustomProperty[]` | read-only |

### `CustomPropertyCollection.add()`

```ts theme={null}
add(key: string, value: CustomPropertyValue): CustomProperty
```

Creates the property, or gives an existing one of this key the new value.

### `CustomPropertyCollection.deleteAll()`

```ts theme={null}
deleteAll(): void
```

### `CustomPropertyCollection.getCount()`

```ts theme={null}
getCount(): { value: number }
```

### `CustomPropertyCollection.getItem()`

```ts theme={null}
getItem(key: string): CustomProperty
```

### `CustomPropertyCollection.getItemAt()`

```ts theme={null}
getItemAt(index: number): CustomProperty
```

### `CustomPropertyCollection.getItemOrNullObject()`

```ts theme={null}
getItemOrNullObject(key: string): CustomProperty & { isNullObject: boolean }
```

## `CustomXmlPart`

`PowerPoint.CustomXmlPart`. The handle names its item part, so it survives `setXml`.

Import from `@reductoai/pptx/officejs`.

### CustomXmlPart properties

| Name | Type | Description |
| - | - | - |
| `id` | `string` | read-only |
| `namespaceUri` | `string` | read-only |

### `CustomXmlPart.delete()`

```ts theme={null}
delete(): void
```

### `CustomXmlPart.getXml()`

```ts theme={null}
getXml(): { value: string }
```

### `CustomXmlPart.setXml()`

```ts theme={null}
setXml(xml: string): void
```

## `CustomXmlPartCollection`

`PowerPoint.CustomXmlPartCollection`: `customXml/itemN.xml` parts with their `itemPropsN.xml`.

Import from `@reductoai/pptx/officejs`.

### CustomXmlPartCollection properties

| Name | Type | Description |
| - | - | - |
| `items` | `CustomXmlPart[]` | read-only |

### `CustomXmlPartCollection.add()`

```ts theme={null}
add(xml: string): CustomXmlPart
```

### `CustomXmlPartCollection.getByNamespace()`

```ts theme={null}
getByNamespace(namespaceUri: string): CustomXmlPartScopedCollection
```

### `CustomXmlPartCollection.getCount()`

```ts theme={null}
getCount(): { value: number }
```

### `CustomXmlPartCollection.getItem()`

```ts theme={null}
getItem(id: string): CustomXmlPart
```

### `CustomXmlPartCollection.getItemAt()`

```ts theme={null}
getItemAt(index: number): CustomXmlPart
```

### `CustomXmlPartCollection.getItemOrNullObject()`

```ts theme={null}
getItemOrNullObject(id: string): NullAware
```

## `CustomXmlPartScopedCollection`

`PowerPoint.CustomXmlPartScopedCollection`: the parts whose root is in one namespace.

Import from `@reductoai/pptx/officejs`.

### CustomXmlPartScopedCollection properties

| Name | Type | Description |
| - | - | - |
| `items` | `CustomXmlPart[]` | read-only |

### `CustomXmlPartScopedCollection.getCount()`

```ts theme={null}
getCount(): { value: number }
```

### `CustomXmlPartScopedCollection.getItem()`

```ts theme={null}
getItem(id: string): CustomXmlPart
```

### `CustomXmlPartScopedCollection.getItemAt()`

```ts theme={null}
getItemAt(index: number): CustomXmlPart
```

### `CustomXmlPartScopedCollection.getItemOrNullObject()`

```ts theme={null}
getItemOrNullObject(id: string): NullAware
```

### `CustomXmlPartScopedCollection.getOnlyItem()`

```ts theme={null}
getOnlyItem(): CustomXmlPart
```

### `CustomXmlPartScopedCollection.getOnlyItemOrNullObject()`

```ts theme={null}
getOnlyItemOrNullObject(): NullAware
```

## `DocumentProperties`

`PowerPoint.DocumentProperties`: docProps/core.xml and app.xml. An empty string clears a member.

Import from `@reductoai/pptx/officejs`.

### DocumentProperties properties

| Name | Type | Description |
| - | - | - |
| `customProperties` | `CustomPropertyCollection` | read-only |
| `author` | `string` | |
| `category` | `string` | |
| `comments` | `string` | The file's Comments field, not comments on slides. |
| `company` | `string` | |
| `creationDate` | `Date \| undefined` | read-only Undefined when the file states no `dcterms:created`, or one that does not parse. |
| `keywords` | `string` | |
| `lastAuthor` | `string` | read-only |
| `manager` | `string` | |
| `revisionNumber` | `number` | `cp:revision`; 0 when the file states none. |
| `subject` | `string` | |
| `title` | `string` | |
