> ## 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: Review and comments

## `CommentCollection`

OfficeJS-flavored live collection: `items` is recomputed on every access.

Not exported by name. You get it from the API.

### CommentCollection properties

| Name | Type | Description |
| - | - | - |
| `items` | `T[]` | read-only |
| `length` | `number` | read-only |

### `CommentCollection.at()`

```ts theme={null}
at(index: number): Comment
```

### `CommentCollection.getFirst()`

```ts theme={null}
getFirst(): Comment
```

### `CommentCollection.getFirstOrNullObject()`

```ts theme={null}
getFirstOrNullObject(): Comment & { isNullObject: boolean }
```

OfficeJS null-object variant; inspect `isNullObject` before other members.

### `CommentCollection.getItem()`

```ts theme={null}
getItem(index: number): Comment
```

OfficeJS spelling of at().

### `CommentCollection.getLast()`

```ts theme={null}
getLast(): Comment
```

### `CommentCollection.getLastOrNullObject()`

```ts theme={null}
getLastOrNullObject(): Comment & { isNullObject: boolean }
```

OfficeJS null-object variant; inspect `isNullObject` before other members.

## `CommentContentRange`

Not exported by name. You get it from the API.

### CommentContentRange properties

| Name | Type | Description |
| - | - | - |
| `bold` | `boolean \| undefined` | Undefined when the runs disagree; OfficeJS returns a null-ish mixed marker. |
| `hyperlink` | `string` | The first `w:hyperlink` of the comment, resolved through the COMMENTS part's relationships; "" when the comment carries no link. Writing wraps the whole comment content in one link (replacing any existing wrapper); null or "" unwraps it and drops the relationship. |
| `isEmpty` | `boolean` | read-only |
| `italic` | `boolean \| undefined` | Undefined when the runs disagree; OfficeJS returns a null-ish mixed marker. |
| `strikeThrough` | `boolean \| undefined` | Undefined when the runs disagree; OfficeJS returns a null-ish mixed marker. |
| `text` | `string` | read-only |
| `underline` | `UnderlineType \| undefined` | "None" when no run underlines; undefined when the runs disagree. |

### `CommentContentRange.getTrackedChanges()`

```ts theme={null}
getTrackedChanges(): TrackedChangeCollection
```

Extension: tracked changes in the comment's own text (`storyType` "Comments" in `Document.revisions`).

### `CommentContentRange.insertText()`

```ts theme={null}
insertText(
  text: string,
  location: "Replace" | "Start" | "End" | "Before" | "After",
): CommentContentRange
```

Growing the comment keeps the existing runs: the new text clones the rPr of
the run it lands beside, and "Replace" seeds from the FIRST run it drops
(Word's behavior). A comment with no content run is simply rebuilt.

### `CommentContentRange.set()`

```ts theme={null}
set(properties: CommentContentRangeUpdateData, options?: UpdateOptions): void
```

## `CommentReplyCollection`

OfficeJS-flavored live collection: `items` is recomputed on every access.

Not exported by name. You get it from the API.

### CommentReplyCollection properties

| Name | Type | Description |
| - | - | - |
| `items` | `T[]` | read-only |
| `length` | `number` | read-only |

### `CommentReplyCollection.at()`

```ts theme={null}
at(index: number): CommentReply
```

### `CommentReplyCollection.getFirst()`

```ts theme={null}
getFirst(): CommentReply
```

### `CommentReplyCollection.getFirstOrNullObject()`

```ts theme={null}
getFirstOrNullObject(): CommentReply & { isNullObject: boolean }
```

OfficeJS null-object variant; inspect `isNullObject` before other members.

### `CommentReplyCollection.getItem()`

```ts theme={null}
getItem(index: number): CommentReply
```

OfficeJS spelling of at().

### `CommentReplyCollection.getLast()`

```ts theme={null}
getLast(): CommentReply
```

### `CommentReplyCollection.getLastOrNullObject()`

```ts theme={null}
getLastOrNullObject(): CommentReply & { isNullObject: boolean }
```

OfficeJS null-object variant; inspect `isNullObject` before other members.

## `RevisionCollection`

OfficeJS-flavored live collection: `items` is recomputed on every access.

Not exported by name. You get it from the API.

### RevisionCollection properties

| Name | Type | Description |
| - | - | - |
| `items` | `T[]` | read-only |
| `length` | `number` | read-only |

### `RevisionCollection.acceptAll()`

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

### `RevisionCollection.at()`

```ts theme={null}
at(index: number): Revision
```

### `RevisionCollection.getFirst()`

```ts theme={null}
getFirst(): Revision
```

### `RevisionCollection.getFirstOrNullObject()`

```ts theme={null}
getFirstOrNullObject(): Revision & { isNullObject: boolean }
```

OfficeJS null-object variant; inspect `isNullObject` before other members.

### `RevisionCollection.getItem()`

```ts theme={null}
getItem(index: number): Revision
```

OfficeJS spelling of at().

### `RevisionCollection.getLast()`

```ts theme={null}
getLast(): Revision
```

### `RevisionCollection.getLastOrNullObject()`

```ts theme={null}
getLastOrNullObject(): Revision & { isNullObject: boolean }
```

OfficeJS null-object variant; inspect `isNullObject` before other members.

### `RevisionCollection.rejectAll()`

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

## `TrackedChangeCollection`

OfficeJS-flavored live collection: `items` is recomputed on every access.

Not exported by name. You get it from the API.

### TrackedChangeCollection properties

| Name | Type | Description |
| - | - | - |
| `items` | `T[]` | read-only |
| `length` | `number` | read-only |

### `TrackedChangeCollection.acceptAll()`

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

### `TrackedChangeCollection.at()`

```ts theme={null}
at(index: number): TrackedChange
```

### `TrackedChangeCollection.getFirst()`

```ts theme={null}
getFirst(): TrackedChange
```

### `TrackedChangeCollection.getFirstOrNullObject()`

```ts theme={null}
getFirstOrNullObject(): TrackedChange & { isNullObject: boolean }
```

OfficeJS null-object variant; inspect `isNullObject` before other members.

### `TrackedChangeCollection.getItem()`

```ts theme={null}
getItem(index: number): TrackedChange
```

OfficeJS spelling of at().

### `TrackedChangeCollection.getLast()`

```ts theme={null}
getLast(): TrackedChange
```

### `TrackedChangeCollection.getLastOrNullObject()`

```ts theme={null}
getLastOrNullObject(): TrackedChange & { isNullObject: boolean }
```

OfficeJS null-object variant; inspect `isNullObject` before other members.

### `TrackedChangeCollection.rejectAll()`

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