Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelWorkbookProtectionOptions

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Source revision
273d35d5ba8a with working tree changes
Modifiers
sealed

Options used when protecting the workbook structure.

Inheritance

  • object
  • ExcelWorkbookProtectionOptions

Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

public ExcelWorkbookProtectionOptions() #

Properties

public bool ProtectStructure { get; set; } #

Protects the workbook structure, which prevents sheet add/delete/move/rename operations in Excel UI.

public bool ProtectWindows { get; set; } #

Protects workbook windows where supported by the consuming application.

public string? Password { get; set; } #

Optional workbook protection password. This is Excel UI protection, not package encryption.

public string? LegacyPasswordHash { get; set; } #

Optional precomputed legacy workbook protection hash. When set, this value is written as-is.