ExcelDocumentSecurityProtectWorkbook(Boolean, Boolean, String) Method
Protects the workbook window and structure and sets a password to unprotect the workbook.
Namespace: Winnovative.ExcelLibAssembly: WnvXls_NetCore (in WnvXls_NetCore.dll) Version: 14.0.0
public void ProtectWorkbook(
bool protectWindow,
bool protectStructure,
string password
)
Parameters
- protectWindow Boolean
- When this flag is true the workbook window will be protected.
- protectStructure Boolean
- When this flag is true the workbook structure is protected.
- password String
- The password to be used to unprotect the workbook.