Winnovative Excel Library

ExcelWorksheetSecurityProtectWorksheet Method (String, ExcelProtectionAllowFlags)

Winnovative Excel Library Documentation
Protects the worksheet and allows only the operations specified by the protection flags and set a password required to unprotect the worksheet.

Namespace:  Winnovative.ExcelLib
Assembly:  wnvxls (in wnvxls.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax

public void ProtectWorksheet(
	string password,
	ExcelProtectionAllowFlags allowFlags
)

Parameters

password
Type: SystemString
The password.
allowFlags
Type: Winnovative.ExcelLibExcelProtectionAllowFlags
The flags specifying the operations allowed after protection.
See Also

Reference