ExcelDocumentSecurityProtectWorkbook(Boolean, Boolean, String) Method

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

Definition

Namespace: Winnovative.ExcelLib
Assembly: WnvXls_NetCore (in WnvXls_NetCore.dll) Version: 11.0.0
C#
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.

See Also