Method Unprotect
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
Unprotect(string?)
Removes the sheet's protection, as Excel's Unprotect Sheet does: with the password when it has one. A sheet that is not protected is left as it is.
public void Unprotect(string? password = null)
Parameters
passwordstringThe 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.