
## CheckBoxCollection class

Represents a collection of [CheckBox](../checkbox/) objects in a worksheet.

```javascript
class CheckBoxCollection implements Iterable<CheckBox>;
```


### Example
```javascript
const { Workbook } = require("aspose.cells.node");

var excel = new Workbook();
var index = excel.worksheets.get(0).getCheckBoxes().add(15, 15, 20, 100);
var checkBox = excel.worksheets.get(0).getCheckBoxes().get(index);
checkBox.text = "Check Box 1";
```
## Methods

| Method | Description |
| --- | --- |
| [get(number)](#get-number-)| Gets the [CheckBox](../checkbox/) element at the specified index. |
| [add(number, number, number, number)](#add-number-number-number-number-)| Adds a checkBox to the collection. |
| [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\<CheckBox\>

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 [CheckBox](../checkbox/) element at the specified index.

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

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| index | number | The zero based index of the element. |

**Returns**

The element at the specified index.

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

Adds a checkBox to the collection.

```javascript
add(topRow: number, leftColumn: number, height: number, width: number) : number;
```

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| topRow | number | Upper left row index. |
| leftColumn | number | Upper left column index. |
| height | number | Height of checkBox, in unit of pixel. |
| width | number | Width of checkBox, in unit of pixel. |

**Returns**

[CheckBox](../checkbox/) object index.

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



