Represents a range of cells in a worksheet that may be edited by the end user.

WorksheetProtectedRange

new WorksheetProtectedRange(title: string): WorksheetProtectedRange

Returns WorksheetProtectedRange

Returns true if the range has a password associated with it.

get hasPassword(): boolean

Returns boolean

Returns a boolean indicating if the range is currently locked.

get isProtected(): boolean

Returns boolean

set isProtected(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a collection of ranges that may be edited when the worksheet is protected.

get ranges(): ICollection$1<WorksheetRegion>

Returns ICollection$1<WorksheetRegion>

Returns or sets the name of the range.

get title(): string

Returns string

set title(a: string): void

Parameters

  • a: string

Returns void

Returns the worksheet with which the edit range is associated.

get worksheet(): Worksheet

Returns Worksheet

set worksheet(a: Worksheet): void

Parameters

Returns void

Removes the password from the range.

unprotect(): void

Returns void