ExcelWorksheetSecurityProtectWorksheet(String, ExcelProtectionAllowFlags) Method
Protects the worksheet and allows only the operations specified by the protection flags
and set a password required to unprotect the worksheet.
Namespace: Winnovative.ExcelLibAssembly: WnvXls_NetCore (in WnvXls_NetCore.dll) Version: 11.0.0
public void ProtectWorksheet(
string password,
ExcelProtectionAllowFlags allowFlags
)
Public Sub ProtectWorksheet (
password As String,
allowFlags As ExcelProtectionAllowFlags
)
public:
void ProtectWorksheet(
String^ password,
ExcelProtectionAllowFlags allowFlags
)
member ProtectWorksheet :
password : string *
allowFlags : ExcelProtectionAllowFlags -> unit
Parameters
- password String
- The password.
- allowFlags ExcelProtectionAllowFlags
- The flags specifying the operations allowed after protection.