ExcelWorkbookProtectionOptionsFluent
OfficeIMO.Excel
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
- The instance.
- value string?
- The value.
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
- The instance.
- value string?
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelWorkbookProtectionOptions { ProtectWindows = value }; excelWorkbookProtectionOptions.ProtectWindows(value);