Click or drag to resize

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
)

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