# ExcelTemplateOptionsFluent

The fluent methods of ExcelTemplateOptions, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelTemplateOptions](/api/excel/officeimo-excel-exceltemplateoptions/), 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
- ExcelTemplateOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelTemplateOptions FormatProvider(ExcelTemplateOptions excelTemplateOptions, IFormatProvider? value)` [#](#method-formatprovider-officeimo-excel-exceltemplateoptions-iformatprovider)

Sets [ExcelTemplateOptions.FormatProvider](/api/excel/officeimo-excel-exceltemplateoptions/): Format provider used by built-in aliases and custom formatters.

Parameters

**excelTemplateOptions OfficeIMO.Excel.ExcelTemplateOptions required**

The instance.

**value System.IFormatProvider? required**

The value.

Returns

`ExcelTemplateOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelTemplateOptions { FormatProvider = value };    excelTemplateOptions.FormatProvider(value);
```

`public static ExcelTemplateOptions MissingValueBehavior(ExcelTemplateOptions excelTemplateOptions, ExcelTemplateMissingValueBehavior value)` [#](#method-missingvaluebehavior-officeimo-excel-exceltemplateoptions-officeimo-excel-exceltemplatemissingvaluebehavior)

Sets [ExcelTemplateOptions.MissingValueBehavior](/api/excel/officeimo-excel-exceltemplateoptions/): Behavior used when a marker is not supplied by the values/model.

Parameters

**excelTemplateOptions OfficeIMO.Excel.ExcelTemplateOptions required**

The instance.

**value OfficeIMO.Excel.ExcelTemplateMissingValueBehavior required**

The value.

Returns

`ExcelTemplateOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelTemplateOptions { MissingValueBehavior = value };    excelTemplateOptions.MissingValueBehavior(value);
```

`public static ExcelTemplateOptions ThrowOnMissing(ExcelTemplateOptions excelTemplateOptions, bool value = true)` [#](#method-throwonmissing-officeimo-excel-exceltemplateoptions-boolean)

Sets [ExcelTemplateOptions.ThrowOnMissing](/api/excel/officeimo-excel-exceltemplateoptions/): Throws when a marker is not supplied by the values/model. Equivalent to [ExcelTemplateMissingValueBehavior.Throw](/api/excel/officeimo-excel-exceltemplatemissingvaluebehavior/).

Parameters

**excelTemplateOptions OfficeIMO.Excel.ExcelTemplateOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelTemplateOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelTemplateOptions { ThrowOnMissing = value };    excelTemplateOptions.ThrowOnMissing(value);
```

## 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?`

<!-- PowerForge markdown artifact sha256:99417ADFEF933561BCB06A3B38B3752C929FB53826B95191BAEAFF18F1C43D1E -->
