ProtectedRangeCollection

ProtectedRangeCollection class

Encapsulates a collection of ProtectedRange objects.

Methods

NameDescription
add(name, startRow, startColumn, endRow, endColumn)Adds a ProtectedRange item to the collection.
add()Reserved for internal use.
clear()
contains()Reserved for internal use.
get(index)Gets the ProtectedRange element at the specified index.
get()Reserved for internal use.
getCount()
indexOf()Reserved for internal use.
iterator()
removeAt()

add(name, startRow, startColumn, endRow, endColumn)

Adds a ProtectedRange item to the collection.

ParameterTypeDescription
nameStringRange title. This is used as a descriptor, not as a named range definition.
startRowNumberStart row index of the range.
startColumnNumberStart column index of the range.
endRowNumberEnd row index of the range.
endColumnNumberEnd column index of the range.

Returns: Number — Number object index.

add()

Reserved for internal use.

clear()

contains()

Reserved for internal use.

get(index)

Gets the ProtectedRange element at the specified index.

ParameterTypeDescription
indexNumberThe zero based index of the element.

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

get()

Reserved for internal use.

getCount()

indexOf()

Reserved for internal use.

iterator()

removeAt()