
## ProtectedRangeCollection class

Encapsulates a collection of ProtectedRange objects.

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [Count](#count) | Number |  |
| [Item (int)](#itemint) | ProtectedRange | Gets the ProtectedRange element at the specified index. |

## Methods

| Name | Description |
| --- | --- |
| [add](#add) | Adds a ProtectedRange item to the collection. |
| [clear](#clear) |  |
| [removeAt](#removeat) |  |
| [iterator](#iterator) |  |
| [get](#get) | Reserved for internal use. |
| [contains](#contains) | Reserved for internal use. |
| [indexOf](#indexof) | Reserved for internal use. |

### ProtectedRangeCollection.Count property {#count}

**Type:** Number

### ProtectedRangeCollection.Item (int) property {#itemint}

Gets the ProtectedRange element at the specified index.

**Type:** ProtectedRange

### add(name, startRow, startColumn, endRow, endColumn) (1 of 2) {#add}

Adds a ProtectedRange item to the collection.

| Parameter | Type | Description |
| --- | --- | --- |
| name | String | Range title. This is used as a descriptor, not as a named range definition. |
| startRow | Number | Start row index of the range. |
| startColumn | Number | Start column index of the range. |
| endRow | Number | End row index of the range. |
| endColumn | Number | End column index of the range. |

**Returns:** object index.

---

### add(value) (2 of 2) {#add-1}

Reserved for internal use.

### clear() {#clear}

### removeAt(index) {#removeat}

### iterator() {#iterator}

### get(index) {#get}

Reserved for internal use.

### contains(value) {#contains}

Reserved for internal use.

### indexOf(value) {#indexof}

Reserved for internal use.
