
## CustomPropertyCollection class

A collection of [CustomProperty](../customproperty/) objects that represent additional information.

```javascript
class CustomPropertyCollection implements Iterable<CustomProperty>;
```


## Methods

| Method | Description |
| --- | --- |
| [get(number)](#get-number-)| Gets the custom property by the specific index. |
| [get(string)](#get-string-)| Gets the custom property by the property name. |
| [add(string, string)](#add-string-string-)| Adds custom property information. |
| [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\<CustomProperty\>

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 custom property by the specific index.

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

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

**Returns**

The custom property

### get(string) {#get-string-}

Gets the custom property by the property name.

```javascript
get(name: string) : CustomProperty;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | The property name. |

**Returns**

The custom property

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

Adds custom property information.

```javascript
add(name: string, value: string) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| name | string | The name of the custom property. |
| value | string | The value of the custom property. |

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



