
## ProtectedRangeCollection class

Encapsulates a collection of ProtectedRange objects.

## Methods

| Name | Description |
| --- | --- |
| [add(name, startRow, startColumn, endRow, endColumn)](#add) | Adds a ProtectedRange item to the collection. |
| [add()](#add-1) | Reserved for internal use. |
| [clear()](#clear) |  |
| [contains()](#contains) | Reserved for internal use. |
| [get(index)](#get) | Gets the ProtectedRange element at the specified index. |
| [get()](#get-1) | Reserved for internal use. |
| [getCount()](#getcount) |  |
| [indexOf()](#indexof) | Reserved for internal use. |
| [iterator()](#iterator) |  |
| [removeAt()](#removeat) |  |

### add(name, startRow, startColumn, endRow, endColumn) {#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:** Number — `Number` object index.

### add() {#add-1}

Reserved for internal use.

### clear() {#clear}

### contains() {#contains}

Reserved for internal use.

### get(index) {#get}

Gets the ProtectedRange element at the specified index.

| Parameter | Type | Description |
| --- | --- | --- |
| index | Number | The zero based index of the element. |

**Returns:** ProtectedRange — `ProtectedRange` The element at the specified index.

### get() {#get-1}

Reserved for internal use.

### getCount() {#getcount}

### indexOf() {#indexof}

Reserved for internal use.

### iterator() {#iterator}

### removeAt() {#removeat}
