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: 11.0.0
public void ProtectWorkbook(
bool protectWindow,
bool protectStructure,
string password
)
Public Sub ProtectWorkbook (
protectWindow As Boolean,
protectStructure As Boolean,
password As String
)
public:
void ProtectWorkbook(
bool protectWindow,
bool protectStructure,
String^ password
)
member ProtectWorkbook :
protectWindow : bool *
protectStructure : bool *
password : string -> unit
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.