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: ExpertXls.ExcelLibAssembly: expertxls (in expertxls.dll) Version: 9.0.0
Syntaxpublic void ProtectWorksheet(
string password,
ExcelProtectionAllowFlags allowFlags
)
Public Sub ProtectWorksheet (
password As String,
allowFlags As ExcelProtectionAllowFlags
)
Parameters
- password String
- The password.
- allowFlags ExcelProtectionAllowFlags
- The flags specifying the operations allowed after protection.
See Also