Workbook
ProtectWorkbook Method
|
Sets protection for workbook.
Namespace:
Spire.Xls
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public void ProtectWorkbook(
bool bIsProtectWindow,
bool bIsProtectContent,
string password
)
Public Sub ProtectWorkbook (
bIsProtectWindow As Boolean,
bIsProtectContent As Boolean,
password As String
)
public:
void ProtectWorkbook(
bool bIsProtectWindow,
bool bIsProtectContent,
String^ password
)
member ProtectWorkbook :
bIsProtectWindow : bool *
bIsProtectContent : bool *
password : string -> unit
Parameters
-
bIsProtectWindow
-
Type:
System
Boolean
Indicates if protect workbook window.
-
bIsProtectContent
-
Type:
System
Boolean
Indicates if protect workbook content.
-
password
-
Type:
System
String
password
See Also