Protects the workbook window and structure and sets a password to unprotect the workbook.
Namespace: Winnovative.ExcelLib
Assembly: wnvxls (in wnvxls.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax
public void ProtectWorkbook( bool protectWindow, bool protectStructure, string password )
Parameters
- protectWindow
- Type: SystemBoolean
When this flag is true the workbook window will be protected. - protectStructure
- Type: SystemBoolean
When this flag is true the workbook structure is protected. - password
- Type: SystemString
The password to be used to unprotect the workbook.
See Also