modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Interface WorkbookProtectionData

    Workbook protection, <workbookProtection>. The password fields hold the hashes a file carries (the iterated *HashValue group or the legacy 16-bit *Password hash) and are written back unchanged.

    interface WorkbookProtectionData {
        lockRevision?: boolean;
        lockStructure?: boolean;
        lockWindows?: boolean;
        revisionsAlgorithmName?: string;
        revisionsHashValue?: string;
        revisionsPassword?: string;
        revisionsSaltValue?: string;
        revisionsSpinCount?: number;
        workbookAlgorithmName?: string;
        workbookHashValue?: string;
        workbookPassword?: string;
        workbookSaltValue?: string;
        workbookSpinCount?: number;
    }
    Index
    lockRevision?: boolean

    Locks the revision log.

    lockStructure?: boolean

    Locks the workbook structure: adding, deleting, renaming, moving and copying sheets.

    lockWindows?: boolean

    Locks the window position and size.

    revisionsAlgorithmName?: string
    revisionsHashValue?: string
    revisionsPassword?: string
    revisionsSaltValue?: string
    revisionsSpinCount?: number
    workbookAlgorithmName?: string
    workbookHashValue?: string
    workbookPassword?: string
    workbookSaltValue?: string
    workbookSpinCount?: number