Provides information about the types of changes that are disabled when the associated Worksheet is protected.

WorksheetProtection

new WorksheetProtection(a: Worksheet): WorksheetProtection

Returns WorksheetProtection

Returns a boolean indicating if the deletion of columns is allowed in a protected worksheet.

get allowDeletingColumns(): boolean

Returns boolean

set allowDeletingColumns(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if the deletion of rows is allowed in a protected worksheet.

get allowDeletingRows(): boolean

Returns boolean

set allowDeletingRows(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if objects such as shapes, comments, charts and controls may be created or changed when the worksheet is protected.

get allowEditObjects(): boolean

Returns boolean

set allowEditObjects(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if existing scenarios are protected when the worksheet is protected.

get allowEditScenarios(): boolean

Returns boolean

set allowEditScenarios(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if the user may use an auto filter created before the worksheet was protected.

get allowFiltering(): boolean

Returns boolean

set allowFiltering(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if the user may change the formatting of cells in a protected worksheet.

get allowFormattingCells(): boolean

Returns boolean

set allowFormattingCells(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if the user may change column information such as its width or visibility in a protected worksheet.

get allowFormattingColumns(): boolean

Returns boolean

set allowFormattingColumns(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if the user may change row information such as its height or visibility in a protected worksheet.

get allowFormattingRows(): boolean

Returns boolean

set allowFormattingRows(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if the user may insert columns in a protected worksheet.

get allowInsertingColumns(): boolean

Returns boolean

set allowInsertingColumns(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if the user may insert hyperlinks in unlocked cells in a protected worksheet.

get allowInsertingHyperlinks(): boolean

Returns boolean

set allowInsertingHyperlinks(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if the user may insert rows in a protected worksheet.

get allowInsertingRows(): boolean

Returns boolean

set allowInsertingRows(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if the sorting is allowed in a protected worksheet.

get allowSorting(): boolean

Returns boolean

set allowSorting(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns a boolean indicating if the user can change pivot tables in a protected worksheet.

get allowUsingPivotTables(): boolean

Returns boolean

set allowUsingPivotTables(a: boolean): void

Parameters

  • a: boolean

Returns void

Returns or sets an enumeration used to indicate how cell selection should be affected when the associated Worksheet is protected.

get selectionMode(): WorksheetProtectedSelectionMode

Returns WorksheetProtectedSelectionMode

set selectionMode(a: WorksheetProtectedSelectionMode): void

Parameters

Returns void

Gets the range at the specified index in the collection. The range at the specified index.

allowedEditRanges(index: number): WorksheetProtectedRange

Parameters

  • index: number

    The zero-based index of the range to get.

Returns WorksheetProtectedRange