Table of Contents

Method UnprotectStructure

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

UnprotectStructure(string?)

Removes the workbook's protection, as Excel's Unprotect Workbook does: with the password when it has one. A workbook that is not protected is left as it is.

public void UnprotectStructure(string? password = null)

Parameters

password string

The password, or null for a protection that has none.

Exceptions

InvalidPasswordException

The protection has a password and this is not it.

ResourceLimitExceededException

The protection's hash asks for more spins than MaxKeyDerivationSpinCount.