Worksheet.SetSheetProtectionPassword Method

NanoXLSX

NanoXLSX

WorksheetSetSheetProtectionPassword Method

Sets or removes the password for worksheet protection. If set, UseSheetProtection will be also set to true

Namespace:  NanoXLSX
Assembly:  NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)
Syntax
C#
public void SetSheetProtectionPassword(
	string password
)

Parameters

password
Type: SystemString
Password (UTF-8) to protect the worksheet. If the password is null or empty, no password will be used
See Also