Click or drag to resize

ExcelDocumentSecurityProtectWorkbook Method (Boolean, Boolean, String)

Protects the workbook window and structure and sets a password to unprotect the workbook.

Namespace:  ExpertXls.ExcelLib
Assembly:  expertxls (in expertxls.dll) Version: 7.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