API Reference
Class
LegacyXlsWorksheetProtection
Represents worksheet protection metadata parsed from a legacy XLS worksheet substream.
Inheritance
- Object
- LegacyXlsWorksheetProtection
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property LegacyXlsWorksheet.Protection
Constructors
public LegacyXlsWorksheetProtection(Boolean isProtected, String legacyPasswordHash = null, Nullable<Boolean> protectObjects = null, Nullable<Boolean> protectScenarios = null, LegacyXlsWorksheetProtectionPermissions permissions = null) #Creates worksheet protection metadata.
Parameters
- isProtected System.Boolean
- Whether the worksheet protection flag is enabled.
- legacyPasswordHash System.String = null
- Optional 16-bit legacy password verifier formatted as four uppercase hexadecimal digits.
- protectObjects System.Nullable{System.Boolean} = null
- Whether worksheet drawing objects are protected, when declared by ObjProtect.
- protectScenarios System.Nullable{System.Boolean} = null
- Whether worksheet scenarios are protected, when declared by ScenarioProtect.
- permissions OfficeIMO.Excel.LegacyXls.Model.LegacyXlsWorksheetProtectionPermissions = null
- Optional enhanced worksheet-protection permission exceptions.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public Boolean IsProtected { get; } #Gets whether worksheet protection is enabled.
public String LegacyPasswordHash { get; } #Gets the optional legacy worksheet protection password verifier.
public Nullable<Boolean> ProtectObjects { get; } #Gets whether worksheet drawing objects are protected, when the legacy record declares it.
public Nullable<Boolean> ProtectScenarios { get; } #Gets whether worksheet scenarios are protected, when the legacy record declares it.
public LegacyXlsWorksheetProtectionPermissions Permissions { get; } #Gets enhanced worksheet-protection permission exceptions parsed from BIFF8 FeatHdr metadata.