Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelCreateOptionsFluent

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Modifiers
static

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 required
The instance.
value OfficeIMO.Excel.ExcelDocumentType required
The value.

Returns

ExcelCreateOptions The same instance.

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 required
The instance.
value string? required
The value.

Returns

ExcelCreateOptions The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Excel.ExcelCreateOptions { FirstSheetName = value };    excelCreateOptions.FirstSheetName(value);
OpenSettings 2 overloads
public static ExcelCreateOptions OpenSettings(ExcelCreateOptions excelCreateOptions, OfficeOpenXmlLoadSettings? value) #

Sets ExcelCreateOptions.OpenSettings: Optional package settings applied when reading the template.

Parameters

excelCreateOptions OfficeIMO.Excel.ExcelCreateOptions required
The instance.
value OfficeIMO.OfficeOpenXmlLoadSettings? required
The value.

Returns

ExcelCreateOptions The same instance.

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 required
The instance.
configure System.Action<OfficeIMO.OfficeOpenXmlLoadSettings> required
Configures the value.

Returns

ExcelCreateOptions The same instance.
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 required
The instance.
value bool = true optional
The value; true when omitted.

Returns

ExcelCreateOptions The same instance.

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 required
The instance.
value OfficeIMO.DocumentPersistenceMode required
The value.

Returns

ExcelCreateOptions The same instance.

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 required
The instance.
value string? required
The value.

Returns

ExcelCreateOptions The same instance.

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 required
The instance.
value System.IO.Stream? required
The value.

Returns

ExcelCreateOptions The same instance.

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 required
The instance.
value OfficeIMO.OfficeTheme? required
The value.

Returns

ExcelCreateOptions The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::OfficeIMO.Excel.ExcelCreateOptions { Theme = value };    excelCreateOptions.Theme(value);