# ExcelCreateOptions

Controls creation and persistence of an Excel workbook.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ExcelLifecycleOptions.Unified.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelLifecycleOptions.Unified.cs#L13)

**Base**

`DocumentCreateOptions`

**Modifiers**

sealed

Controls creation and persistence of an Excel workbook.

## Inheritance

- DocumentCreateOptions
- ExcelCreateOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Excel Workbooks](/docs/excel/) Guide
  
  Overview of the OfficeIMO.Excel package for creating and manipulating Excel spreadsheets. Includes examples and API links.

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 1

- Method [ExcelDocument.Create](/api/excel/officeimo-excel-exceldocument/#method-create-officeimo-excel-excelcreateoptions) parameter `options`

Filter members 

Show inherited

## Constructors

`public ExcelCreateOptions()` [#](#constructor-ctor)

[ExcelLifecycleOptions.Unified.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelLifecycleOptions.Unified.cs#L13)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public ExcelDocumentType DocumentType { get; set; }` [#](#property-documenttype)

[ExcelLifecycleOptions.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelLifecycleOptions.cs#L28)

Controls the Open XML workbook type when no destination extension is available.

`public OfficeTheme? Theme { get; set; }` [#](#property-theme)

[ExcelLifecycleOptions.Unified.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelLifecycleOptions.Unified.cs#L7)

Optional visual theme for a new workbook. Null retains the workbook or template defaults.

`public string? Template { get; set; }` [#](#property-template)

[ExcelLifecycleOptions.Unified.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelLifecycleOptions.Unified.cs#L9)

Optional workbook template copied into the new document.

`public Stream? TemplateStream { get; set; }` [#](#property-templatestream)

[ExcelLifecycleOptions.Unified.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelLifecycleOptions.Unified.cs#L11)

Optional caller-owned template stream. It cannot be combined with Template.

`public bool Overwrite { get; set; }` [#](#property-overwrite)

[ExcelLifecycleOptions.Unified.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelLifecycleOptions.Unified.cs#L13)

Allows a template destination to replace an existing file. The default is true.

`public OfficeOpenXmlLoadSettings? OpenSettings { get; set; }` [#](#property-opensettings)

[ExcelLifecycleOptions.Unified.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelLifecycleOptions.Unified.cs#L15)

Optional package settings applied when reading the template.

`public string? FirstSheetName { get; set; }` [#](#property-firstsheetname)

[ExcelLifecycleOptions.Unified.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelLifecycleOptions.Unified.cs#L17)

Optional worksheet created when a new workbook has no sheets.

## Inherited Properties

`public DocumentPersistenceMode PersistenceMode { get; set; }` [#](#property-persistencemode)

Inherited from DocumentCreateOptions

<!-- PowerForge markdown artifact sha256:D21143EF7F56715D4F61E86A9D2477FED4B3F57D11771808DD00BA0B2200D975 -->
