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

Hierarchy

Hierarchy

  • Base
    • WorksheetProtectedRange

Constructors

Properties

$type: Type
$t: Type
nextHashCode: number

Accessors

  • get hasPassword(): boolean
  • Returns true if the range has a password associated with it.

    Returns boolean

  • get isProtected(): boolean
  • Returns a boolean indicating if the range is currently locked.

    When the associated Worksheet is protected, the ranges with a password will be marked as protected until they are unprotected.

    Returns boolean

  • set isProtected(a): void
  • Parameters

    • a: boolean

    Returns void

  • get ranges(): ICollection$1<WorksheetRegion>
  • Returns a collection of ranges that may be edited when the worksheet is protected.

    Returns ICollection$1<WorksheetRegion>

  • get title(): string
  • Returns or sets the name of the range.

    Returns string

  • set title(a): void
  • Parameters

    • a: string

    Returns void

  • get worksheet(): Worksheet
  • Returns the worksheet with which the edit range is associated.

    Returns Worksheet

  • set worksheet(a): void
  • Parameters

    Returns void

Methods

  • Parameters

    • other: any

    Returns boolean

  • Returns number

  • Returns Base

  • Removes the password from the range.

    Note: If the range is not currently protected (i.e. [[isProtected]] returns false) the method will not do anything.

    See

    • [[isProtected]]
    • [[hasPassword]]

    Returns void

  • Parameters

    • item1: any
    • item2: any

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns number

  • Parameters

    • item1: any
    • item2: any

    Returns boolean

  • Parameters

    • a: any
    • b: any

    Returns boolean

  • Parameters

    • obj: any

    Returns any[]

  • Parameters

    • obj: any

    Returns any[]

  • Parameters

    • obj: any

    Returns number

  • Parameters

    • a: any
    • b: any

    Returns boolean