ExcelSheetProtectionOptionsFluent
OfficeIMO.Excel
The fluent methods of ExcelSheetProtectionOptions, 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
- ExcelSheetProtectionOptionsFluent
Methods
public static ExcelSheetProtectionOptions AllowAutoFilter(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowAutoFilter: Allow AutoFilter.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowAutoFilter = value }; excelSheetProtectionOptions.AllowAutoFilter(value);public static ExcelSheetProtectionOptions AllowDeleteColumns(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowDeleteColumns: Allow deleting columns.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowDeleteColumns = value }; excelSheetProtectionOptions.AllowDeleteColumns(value);public static ExcelSheetProtectionOptions AllowDeleteRows(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowDeleteRows: Allow deleting rows.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowDeleteRows = value }; excelSheetProtectionOptions.AllowDeleteRows(value);public static ExcelSheetProtectionOptions AllowFormatCells(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowFormatCells: Allow formatting cells.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowFormatCells = value }; excelSheetProtectionOptions.AllowFormatCells(value);public static ExcelSheetProtectionOptions AllowFormatColumns(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowFormatColumns: Allow formatting columns.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowFormatColumns = value }; excelSheetProtectionOptions.AllowFormatColumns(value);public static ExcelSheetProtectionOptions AllowFormatRows(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowFormatRows: Allow formatting rows.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowFormatRows = value }; excelSheetProtectionOptions.AllowFormatRows(value);public static ExcelSheetProtectionOptions AllowInsertColumns(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowInsertColumns: Allow inserting columns.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowInsertColumns = value }; excelSheetProtectionOptions.AllowInsertColumns(value);public static ExcelSheetProtectionOptions AllowInsertHyperlinks(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowInsertHyperlinks: Allow inserting hyperlinks.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowInsertHyperlinks = value }; excelSheetProtectionOptions.AllowInsertHyperlinks(value);public static ExcelSheetProtectionOptions AllowInsertRows(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowInsertRows: Allow inserting rows.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowInsertRows = value }; excelSheetProtectionOptions.AllowInsertRows(value);public static ExcelSheetProtectionOptions AllowPivotTables(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowPivotTables: Allow PivotTables.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowPivotTables = value }; excelSheetProtectionOptions.AllowPivotTables(value);public static ExcelSheetProtectionOptions AllowSelectLockedCells(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowSelectLockedCells: Allow selecting locked cells.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowSelectLockedCells = value }; excelSheetProtectionOptions.AllowSelectLockedCells(value);public static ExcelSheetProtectionOptions AllowSelectUnlockedCells(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowSelectUnlockedCells: Allow selecting unlocked cells.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowSelectUnlockedCells = value }; excelSheetProtectionOptions.AllowSelectUnlockedCells(value);public static ExcelSheetProtectionOptions AllowSort(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool value = true) #Sets ExcelSheetProtectionOptions.AllowSort: Allow sorting.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { AllowSort = value }; excelSheetProtectionOptions.AllowSort(value);public static ExcelSheetProtectionOptions LegacyPasswordHash(ExcelSheetProtectionOptions excelSheetProtectionOptions, string? value) #Sets ExcelSheetProtectionOptions.LegacyPasswordHash: Optional precomputed legacy worksheet protection hash. When set, this value is written as-is.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { LegacyPasswordHash = value }; excelSheetProtectionOptions.LegacyPasswordHash(value);public static ExcelSheetProtectionOptions Password(ExcelSheetProtectionOptions excelSheetProtectionOptions, string? value) #Sets ExcelSheetProtectionOptions.Password: Optional worksheet protection password. This is Excel UI protection, not package encryption.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { Password = value }; excelSheetProtectionOptions.Password(value);public static ExcelSheetProtectionOptions ProtectObjects(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool? value = true) #Sets ExcelSheetProtectionOptions.ProtectObjects: Protect worksheet drawing objects when set. When null, the objects attribute is omitted.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { ProtectObjects = value }; excelSheetProtectionOptions.ProtectObjects(value);public static ExcelSheetProtectionOptions ProtectScenarios(ExcelSheetProtectionOptions excelSheetProtectionOptions, bool? value = true) #Sets ExcelSheetProtectionOptions.ProtectScenarios: Protect worksheet scenarios when set. When null, the scenarios attribute is omitted.
Parameters
- excelSheetProtectionOptions OfficeIMO.Excel.ExcelSheetProtectionOptions
- The instance.
- value bool? = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelSheetProtectionOptions { ProtectScenarios = value }; excelSheetProtectionOptions.ProtectScenarios(value);