Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelWorkbookProtectionOptionsFluent

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Modifiers
static

The fluent methods of ExcelWorkbookProtectionOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • ExcelWorkbookProtectionOptionsFluent

Methods

public static ExcelWorkbookProtectionOptions LegacyPasswordHash(ExcelWorkbookProtectionOptions excelWorkbookProtectionOptions, string? value) #

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

Parameters

excelWorkbookProtectionOptions OfficeIMO.Excel.ExcelWorkbookProtectionOptions required
The instance.
value string? required
The value.

Returns

ExcelWorkbookProtectionOptions The same instance.

Examples

// C# initializer or property                                                                 // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookProtectionOptions { LegacyPasswordHash = value };    excelWorkbookProtectionOptions.LegacyPasswordHash(value);
public static ExcelWorkbookProtectionOptions Password(ExcelWorkbookProtectionOptions excelWorkbookProtectionOptions, string? value) #

Sets ExcelWorkbookProtectionOptions.Password: Optional workbook protection password. This is Excel UI protection, not package encryption.

Parameters

excelWorkbookProtectionOptions OfficeIMO.Excel.ExcelWorkbookProtectionOptions required
The instance.
value string? required
The value.

Returns

ExcelWorkbookProtectionOptions The same instance.

Examples

// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookProtectionOptions { Password = value };    excelWorkbookProtectionOptions.Password(value);
public static ExcelWorkbookProtectionOptions ProtectStructure(ExcelWorkbookProtectionOptions excelWorkbookProtectionOptions, bool value = true) #

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

Parameters

excelWorkbookProtectionOptions OfficeIMO.Excel.ExcelWorkbookProtectionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExcelWorkbookProtectionOptions The same instance.

Examples

// C# initializer or property                                                               // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookProtectionOptions { ProtectStructure = value };    excelWorkbookProtectionOptions.ProtectStructure(value);
public static ExcelWorkbookProtectionOptions ProtectWindows(ExcelWorkbookProtectionOptions excelWorkbookProtectionOptions, bool value = true) #

Sets ExcelWorkbookProtectionOptions.ProtectWindows: Protects workbook windows where supported by the consuming application.

Parameters

excelWorkbookProtectionOptions OfficeIMO.Excel.ExcelWorkbookProtectionOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExcelWorkbookProtectionOptions The same instance.

Examples

// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookProtectionOptions { ProtectWindows = value };    excelWorkbookProtectionOptions.ProtectWindows(value);