ExcelWorksheetPasswordHash Property

Note: This API is now obsolete.

Gets or sets the password hash for protected sheet.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version:
[ObsoleteAttribute("Use 'GemBox.Spreadsheet.WorksheetProtection.PasswordHash' property instead. For more info, see https://www.gemboxsoftware.com/spreadsheet/help/html/Obsolete_Members.htm#ExcelWorksheetPasswordHash.")]
public int PasswordHash { get; set; }

Property Value

Type: Int32
This property is simply written to Excel file and has no effect on the behavior of this library. For more information on worksheet protection, consult Microsoft Excel documentation. This property needs to be set to value of type ushort (property is of type int because ushort is not CLS compliant). If you don't know which password hash corresponds to determinant password, make excel file using MS Excel, load it using GemBox.Spreadsheet, and read this property. Then reuse that value in your project.
See Also