ExcelCreateOptionsFluent
OfficeIMO.Excel
The fluent methods of ExcelCreateOptions, 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
- ExcelCreateOptionsFluent
Methods
public static ExcelCreateOptions DocumentType(ExcelCreateOptions excelCreateOptions, ExcelDocumentType value) #Sets ExcelCreateOptions.DocumentType: Controls the Open XML workbook type when no destination extension is available.
Parameters
- excelCreateOptions OfficeIMO.Excel.ExcelCreateOptions
- The instance.
- value OfficeIMO.Excel.ExcelDocumentType
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelCreateOptions { DocumentType = value }; excelCreateOptions.DocumentType(value);public static ExcelCreateOptions FirstSheetName(ExcelCreateOptions excelCreateOptions, string? value) #Sets ExcelCreateOptions.FirstSheetName: Optional worksheet created when a new workbook has no sheets.
Parameters
- excelCreateOptions OfficeIMO.Excel.ExcelCreateOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelCreateOptions { FirstSheetName = value }; excelCreateOptions.FirstSheetName(value);public static ExcelCreateOptions OpenSettings(ExcelCreateOptions excelCreateOptions, OfficeOpenXmlLoadSettings? value) #Sets ExcelCreateOptions.OpenSettings: Optional package settings applied when reading the template.
Parameters
- excelCreateOptions OfficeIMO.Excel.ExcelCreateOptions
- The instance.
- value OfficeIMO.OfficeOpenXmlLoadSettings?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelCreateOptions { OpenSettings = value }; excelCreateOptions.OpenSettings(value);public static ExcelCreateOptions OpenSettings(ExcelCreateOptions excelCreateOptions, Action<OfficeOpenXmlLoadSettings> configure) #Configures ExcelCreateOptions.OpenSettings in place (creating it when not set): Optional package settings applied when reading the template.
Parameters
- excelCreateOptions OfficeIMO.Excel.ExcelCreateOptions
- The instance.
- configure System.Action<OfficeIMO.OfficeOpenXmlLoadSettings>
- Configures the value.
public static ExcelCreateOptions Overwrite(ExcelCreateOptions excelCreateOptions, bool value = true) #Sets ExcelCreateOptions.Overwrite: Allows a template destination to replace an existing file. The default is true.
Parameters
- excelCreateOptions OfficeIMO.Excel.ExcelCreateOptions
- The instance.
- value bool = true
- The value; true when omitted.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelCreateOptions { Overwrite = value }; excelCreateOptions.Overwrite(value);public static ExcelCreateOptions PersistenceMode(ExcelCreateOptions excelCreateOptions, DocumentPersistenceMode value) #Sets DocumentCreateOptions.PersistenceMode.
Parameters
- excelCreateOptions OfficeIMO.Excel.ExcelCreateOptions
- The instance.
- value OfficeIMO.DocumentPersistenceMode
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelCreateOptions { PersistenceMode = value }; excelCreateOptions.PersistenceMode(value);public static ExcelCreateOptions Template(ExcelCreateOptions excelCreateOptions, string? value) #Sets ExcelCreateOptions.Template: Optional workbook template copied into the new document.
Parameters
- excelCreateOptions OfficeIMO.Excel.ExcelCreateOptions
- The instance.
- value string?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelCreateOptions { Template = value }; excelCreateOptions.Template(value);public static ExcelCreateOptions TemplateStream(ExcelCreateOptions excelCreateOptions, Stream? value) #Sets ExcelCreateOptions.TemplateStream: Optional caller-owned template stream. It cannot be combined with Template.
Parameters
- excelCreateOptions OfficeIMO.Excel.ExcelCreateOptions
- The instance.
- value System.IO.Stream?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelCreateOptions { TemplateStream = value }; excelCreateOptions.TemplateStream(value);public static ExcelCreateOptions Theme(ExcelCreateOptions excelCreateOptions, OfficeTheme? value) #Sets ExcelCreateOptions.Theme: Optional visual theme for a new workbook. Null retains the workbook or template defaults.
Parameters
- excelCreateOptions OfficeIMO.Excel.ExcelCreateOptions
- The instance.
- value OfficeIMO.OfficeTheme?
- The value.
Examples
// C# initializer or property // C# fluent
new global::OfficeIMO.Excel.ExcelCreateOptions { Theme = value }; excelCreateOptions.Theme(value);