# ExcelTableOptionsFluent

The fluent methods of ExcelTableOptions, 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 [ExcelTableOptions](/api/excel/officeimo-excel-exceltableoptions/), 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
- ExcelTableOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelTableOptions Alignment(ExcelTableOptions excelTableOptions, OfficeAlignment? item)` [#](#method-alignment-officeimo-excel-exceltableoptions-nullable-officeimo-officealignment)

Adds an item to OfficeTableOptions.Alignments.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**item OfficeIMO.OfficeAlignment? required**

The item.

Returns

`ExcelTableOptions` The same instance.

`public static ExcelTableOptions Alignments(ExcelTableOptions excelTableOptions, IEnumerable<OfficeAlignment?> items)` [#](#method-alignments-officeimo-excel-exceltableoptions-collections-generic-ienumerable-system-nullable-officeimo-officealignment)

Adds items to OfficeTableOptions.Alignments.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**items System.Collections.Generic.IEnumerable<OfficeIMO.OfficeAlignment?> required**

The items, in order.

Returns

`ExcelTableOptions` The same instance.

`public static ExcelTableOptions AutoFit(ExcelTableOptions excelTableOptions, bool value = true)` [#](#method-autofit-officeimo-excel-exceltableoptions-boolean)

Sets [ExcelTableOptions.AutoFit](/api/excel/officeimo-excel-exceltableoptions/): Gets or sets whether eligible table columns are automatically fitted. Defaults to true.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelTableOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { AutoFit = value };    excelTableOptions.AutoFit(value);
```

`public static ExcelTableOptions CancellationToken(ExcelTableOptions excelTableOptions, CancellationToken value)` [#](#method-cancellationtoken-officeimo-excel-exceltableoptions-threading-cancellationtoken)

Sets [ExcelTableOptions.CancellationToken](/api/excel/officeimo-excel-exceltableoptions/): Gets or sets cancellation for DataTable insertion.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**value System.Threading.CancellationToken required**

The value.

Returns

`ExcelTableOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { CancellationToken = value };    excelTableOptions.CancellationToken(value);
```

`public static ExcelTableOptions Caption(ExcelTableOptions excelTableOptions, string? value)` [#](#method-caption-officeimo-excel-exceltableoptions-string)

Sets OfficeTableOptions.Caption.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelTableOptions` The same instance.

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { Caption = value };    excelTableOptions.Caption(value);
```

`public static ExcelTableOptions Configure(ExcelTableOptions excelTableOptions, Action<ExcelTableOptions> configure)` [#](#method-configure-officeimo-excel-exceltableoptions-action-officeimo-excel-exceltableoptions)

Assigns callbacks and related configuration without invoking delegate-valued properties.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**configure System.Action<OfficeIMO.Excel.ExcelTableOptions> required**

Assignments applied in order.

Returns

`ExcelTableOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                 // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { HeaderTransform = value };    excelTableOptions.Configure(configured => configured.HeaderTransform = value);
```

Exclude 2 overloads

`public static ExcelTableOptions Exclude(ExcelTableOptions excelTableOptions, string item)` [#](#method-exclude-officeimo-excel-exceltableoptions-string)

Adds an item to OfficeTableOptions.Exclude.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**item string required**

The item.

Returns

`ExcelTableOptions` The same instance.

`public static ExcelTableOptions Exclude(ExcelTableOptions excelTableOptions, IEnumerable<string> items)` [#](#method-exclude-officeimo-excel-exceltableoptions-collections-generic-ienumerable-system-string)

Adds items to OfficeTableOptions.Exclude.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**items System.Collections.Generic.IEnumerable<string> required**

The items, in order.

Returns

`ExcelTableOptions` The same instance.

`public static ExcelTableOptions ExecutionMode(ExcelTableOptions excelTableOptions, ExcelExecutionMode? value)` [#](#method-executionmode-officeimo-excel-exceltableoptions-nullable-officeimo-excel-excelexecutionmode)

Sets [ExcelTableOptions.ExecutionMode](/api/excel/officeimo-excel-exceltableoptions/): Gets or sets the execution policy for DataTable cell writes. Null uses the worksheet policy.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**value OfficeIMO.Excel.ExcelExecutionMode? required**

The value.

Returns

`ExcelTableOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { ExecutionMode = value };    excelTableOptions.ExecutionMode(value);
```

Include 2 overloads

`public static ExcelTableOptions Include(ExcelTableOptions excelTableOptions, string item)` [#](#method-include-officeimo-excel-exceltableoptions-string)

Adds an item to OfficeTableOptions.Include.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**item string required**

The item.

Returns

`ExcelTableOptions` The same instance.

`public static ExcelTableOptions Include(ExcelTableOptions excelTableOptions, IEnumerable<string> items)` [#](#method-include-officeimo-excel-exceltableoptions-collections-generic-ienumerable-system-string)

Adds items to OfficeTableOptions.Include.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**items System.Collections.Generic.IEnumerable<string> required**

The items, in order.

Returns

`ExcelTableOptions` The same instance.

`public static ExcelTableOptions IncludeAutoFilter(ExcelTableOptions excelTableOptions, bool value = true)` [#](#method-includeautofilter-officeimo-excel-exceltableoptions-boolean)

Sets [ExcelTableOptions.IncludeAutoFilter](/api/excel/officeimo-excel-exceltableoptions/): Gets or sets whether the table has filter buttons.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelTableOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { IncludeAutoFilter = value };    excelTableOptions.IncludeAutoFilter(value);
```

`public static ExcelTableOptions IncludeHeaders(ExcelTableOptions excelTableOptions, bool value = true)` [#](#method-includeheaders-officeimo-excel-exceltableoptions-boolean)

Sets OfficeTableOptions.IncludeHeaders.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelTableOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { IncludeHeaders = value };    excelTableOptions.IncludeHeaders(value);
```

`public static ExcelTableOptions Name(ExcelTableOptions excelTableOptions, string? value)` [#](#method-name-officeimo-excel-exceltableoptions-string)

Sets OfficeTableOptions.Name.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelTableOptions` The same instance.

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { Name = value };    excelTableOptions.Name(value);
```

Order 2 overloads

`public static ExcelTableOptions Order(ExcelTableOptions excelTableOptions, string item)` [#](#method-order-officeimo-excel-exceltableoptions-string)

Adds an item to OfficeTableOptions.Order.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**item string required**

The item.

Returns

`ExcelTableOptions` The same instance.

`public static ExcelTableOptions Order(ExcelTableOptions excelTableOptions, IEnumerable<string> items)` [#](#method-order-officeimo-excel-exceltableoptions-collections-generic-ienumerable-system-string)

Adds items to OfficeTableOptions.Order.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**items System.Collections.Generic.IEnumerable<string> required**

The items, in order.

Returns

`ExcelTableOptions` The same instance.

Projection 2 overloads

`public static ExcelTableOptions Projection(ExcelTableOptions excelTableOptions, ObjectFlattenerOptions? value)` [#](#method-projection-officeimo-excel-exceltableoptions-officeimo-data-objectflatteneroptions)

Sets [ExcelTableOptions.Projection](/api/excel/officeimo-excel-exceltableoptions/): Gets or sets flattening, column selection, formatting and materialization limits.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**value OfficeIMO.Data.ObjectFlattenerOptions? required**

The value.

Returns

`ExcelTableOptions` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { Projection = value };    excelTableOptions.Projection(value);
```

`public static ExcelTableOptions Projection(ExcelTableOptions excelTableOptions, Action<ObjectFlattenerOptions> configure)` [#](#method-projection-officeimo-excel-exceltableoptions-action-officeimo-data-objectflatteneroptions)

Configures [ExcelTableOptions.Projection](/api/excel/officeimo-excel-exceltableoptions/) in place (creating it when not set): Gets or sets flattening, column selection, formatting and materialization limits.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**configure System.Action<OfficeIMO.Data.ObjectFlattenerOptions> required**

Configures the value.

Returns

`ExcelTableOptions` The same instance.

`public static ExcelTableOptions Style(ExcelTableOptions excelTableOptions, ExcelTableStyle value)` [#](#method-style-officeimo-excel-exceltableoptions-officeimo-excel-exceltablestyle)

Sets [ExcelTableOptions.Style](/api/excel/officeimo-excel-exceltableoptions/): Gets or sets the native table style.

Parameters

**excelTableOptions OfficeIMO.Excel.ExcelTableOptions required**

The instance.

**value OfficeIMO.Excel.ExcelTableStyle required**

The value.

Returns

`ExcelTableOptions` The same instance.

Examples

```csharp
// C# initializer or property                                       // C# fluent
new global::OfficeIMO.Excel.ExcelTableOptions { Style = value };    excelTableOptions.Style(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:BF363D4A3B1EC5343D995DC99822AFBB6DCD9D42FE8031A9AA8EA95FF72150C3 -->
