Click or drag to resize

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
)

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