Interface SheetProtection

If the SheetProtection is present then everything is readonly. Setting any of the attributes allows these types of changes to be done.

interface SheetProtection {
    autoFilter: boolean;
    deleteColumns: boolean;
    deleteRows: boolean;
    formatCells: boolean;
    formatColumns: boolean;
    formatRows: boolean;
    insertColumns: boolean;
    insertHyperlinks: boolean;
    insertRows: boolean;
    objects: boolean;
    pivotTables: boolean;
    scenarios: boolean;
    selectLockedCells: boolean;
    selectUnlockedCells: boolean;
    sheet: boolean;
    sort: boolean;
    verifier: ModificationVerifier;
}

Properties

autoFilter: boolean
deleteColumns: boolean
deleteRows: boolean
formatCells: boolean
formatColumns: boolean
formatRows: boolean
insertColumns: boolean
insertHyperlinks: boolean
insertRows: boolean
objects: boolean
pivotTables: boolean
scenarios: boolean
selectLockedCells: boolean
selectUnlockedCells: boolean
sheet: boolean
sort: boolean

If this is specified then a password will be requested to unlock