Workbook
Protect Method (String, Boolean, Boolean)
|
protect file,also Indicates whether protect workbook window and structure or not
Namespace:
Spire.Xls
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void Protect(
string passwordToOpen,
bool bIsProtectWindow,
bool bIsProtectContent
)
Public Sub Protect (
passwordToOpen As String,
bIsProtectWindow As Boolean,
bIsProtectContent As Boolean
)
public:
void Protect(
String^ passwordToOpen,
bool bIsProtectWindow,
bool bIsProtectContent
)
member Protect :
passwordToOpen : string *
bIsProtectWindow : bool *
bIsProtectContent : bool -> unit
Parameters
-
passwordToOpen
-
Type:
System
String
password to open file.
-
bIsProtectWindow
-
Type:
System
Boolean
Indicates if protect workbook window.
-
bIsProtectContent
-
Type:
System
Boolean
Indicates if protect workbook content.
See Also