
## ThreadedCommentCollection class

Represents the list of threaded comments.

```javascript
class ThreadedCommentCollection implements Iterable<ThreadedComment>;
```


## Methods

| Method | Description |
| --- | --- |
| [get(number)](#get-number-)| Gets the threaded comment by the specific index. |
| [add(string, ThreadedCommentAuthor)](#add-string-threadedcommentauthor-)| Adds a threaded comment. |
| [getCount()](#getCount--)| <b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in. |
| [isNull()](#isNull--)| Checks whether the implementation object is null. |

## \[Symbol.iterator\](): Iterator\<ThreadedComment\>

Returns an iterator over the items in the collection. Enables use of `for...of`, spread syntax, and `Array.from()`.



### get(number) {#get-number-}

Gets the threaded comment by the specific index.

```javascript
get(index: number) : ThreadedComment;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | number | The index |

**Returns**

[ThreadedComment](../threadedcomment/)

### add(string, ThreadedCommentAuthor) {#add-string-threadedcommentauthor-}

Adds a threaded comment.

```javascript
add(text: string, author: ThreadedCommentAuthor) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| text | string | The text of the threaded comment. |
| author | [ThreadedCommentAuthor](../threadedcommentauthor/) | The author of the threaded comment |

### getCount() {#getCount--}

<b>@deprecated.</b> Please use the 'count' property instead. Gets the number of elements contained in.

```javascript
getCount() : number;
```


### isNull() {#isNull--}

Checks whether the implementation object is null.

```javascript
isNull() : boolean;
```



