Click or drag to resize
WorksheetProtectionPasswordHash Property
Gets or sets the password hash for protected sheet.

Namespace: GemBox.Spreadsheet
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version:
public int PasswordHash { get; set; }

Property Value

Type: Int32
This property needs to be set to value of type ushort (property is of type int because ushort is not CLS compliant). For setting password it can be also used SetPassword(String) method.
See Also