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: 41.3.30.1018
Syntax
[ObsoleteAttribute("Use 'GemBox.Spreadsheet.WorksheetProtection.PasswordHash' property instead. For more info, see http://www.gemboxsoftware.com/spreadsheet/help/html/Obsolete_Members.htm#ExcelWorksheetPasswordHash.")]
public int PasswordHash { get; set; }

Property Value

Type: Int32
Remarks
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