XlsWorksheetBase
Protect Method (String, SheetProtectionType)
|
Protects worksheet with password.
Namespace:
Spire.Xls.Core.Spreadsheet
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void Protect(
string password,
SheetProtectionType options
)
Public Sub Protect (
password As String,
options As SheetProtectionType
)
public:
virtual void Protect(
String^ password,
SheetProtectionType options
) sealed
abstract Protect :
password : string *
options : SheetProtectionType -> unit
override Protect :
password : string *
options : SheetProtectionType -> unit
Parameters
-
password
-
Type:
System
String
Protection password.
-
options
-
Type:
Spire.Xls
SheetProtectionType
The options that specify which actions are allowed while the worksheet is protected.
Implements
ITabSheet
Protect(String, SheetProtectionType)
Remarks
Password should be less than 15 symbols.
See Also