API Reference

Class

LegacyXlsWorksheetProtection

Namespace OfficeIMO.Excel.LegacyXls.Model
Assembly OfficeIMO.Excel
Modifiers sealed

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

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 requiredposition: 0
Whether the worksheet protection flag is enabled.
legacyPasswordHash System.String = null optionalposition: 1
Optional 16-bit legacy password verifier formatted as four uppercase hexadecimal digits.
protectObjects System.Nullable{System.Boolean} = null optionalposition: 2
Whether worksheet drawing objects are protected, when declared by ObjProtect.
protectScenarios System.Nullable{System.Boolean} = null optionalposition: 3
Whether worksheet scenarios are protected, when declared by ScenarioProtect.
permissions OfficeIMO.Excel.LegacyXls.Model.LegacyXlsWorksheetProtectionPermissions = null optionalposition: 4
Optional enhanced worksheet-protection permission exceptions.

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.