ProtectedRangeCollection
Contents
[
Hide
]ProtectedRangeCollection class
Encapsulates a collection of ProtectedRange objects.
class ProtectedRangeCollection;
Methods
| Method | Description |
|---|---|
| get(number) | Gets the ProtectedRange element at the specified index. |
| add(string, number, number, number, number) | Adds a ProtectedRange item to the collection. |
get(number)
Gets the ProtectedRange element at the specified index.
get(index: number) : ProtectedRange;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| index | number | The zero based index of the element. |
Returns
The element at the specified index.
add(string, number, number, number, number)
Adds a ProtectedRange item to the collection.
add(name: string, startRow: number, startColumn: number, endRow: number, endColumn: number) : number;
Parameters:
| 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.