# ExcelSpreadsheetXmlOptionsFluent

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

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Modifiers**

static

The fluent methods of [ExcelSpreadsheetXmlOptions](/api/excel/officeimo-excel-excelspreadsheetxmloptions/), 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
- ExcelSpreadsheetXmlOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelSpreadsheetXmlOptions CancellationToken(ExcelSpreadsheetXmlOptions excelSpreadsheetXmlOptions, CancellationToken value)` [#](#method-cancellationtoken-officeimo-excel-excelspreadsheetxmloptions-threading-cancellationtoken)

Sets [ExcelSpreadsheetXmlOptions.CancellationToken](/api/excel/officeimo-excel-excelspreadsheetxmloptions/): Cancellation checked during input, worksheet and cell processing.

Parameters

**excelSpreadsheetXmlOptions OfficeIMO.Excel.ExcelSpreadsheetXmlOptions required**

The instance.

**value System.Threading.CancellationToken required**

The value.

Returns

`ExcelSpreadsheetXmlOptions` The same instance.

Examples

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

`public static ExcelSpreadsheetXmlOptions DefaultFontMaximumDigitWidth(ExcelSpreadsheetXmlOptions excelSpreadsheetXmlOptions, OfficeLength? value)` [#](#method-defaultfontmaximumdigitwidth-officeimo-excel-excelspreadsheetxmloptions-nullable-officeimo-officelength)

Sets [ExcelSpreadsheetXmlOptions.DefaultFontMaximumDigitWidth](/api/excel/officeimo-excel-excelspreadsheetxmloptions/): Optional measured maximum digit width of the workbook default font at 96 DPI. When omitted, installed font metrics are used, with a reported seven-pixel approximation if unavailable.

Parameters

**excelSpreadsheetXmlOptions OfficeIMO.Excel.ExcelSpreadsheetXmlOptions required**

The instance.

**value OfficeIMO.OfficeLength? required**

The value.

Returns

`ExcelSpreadsheetXmlOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelSpreadsheetXmlOptions { DefaultFontMaximumDigitWidth = value };    excelSpreadsheetXmlOptions.DefaultFontMaximumDigitWidth(value);
```

`public static ExcelSpreadsheetXmlOptions MaxCells(ExcelSpreadsheetXmlOptions excelSpreadsheetXmlOptions, int value)` [#](#method-maxcells-officeimo-excel-excelspreadsheetxmloptions-int32)

Sets [ExcelSpreadsheetXmlOptions.MaxCells](/api/excel/officeimo-excel-excelspreadsheetxmloptions/): Maximum explicitly stored cells across all worksheets. Default: 1,000,000.

Parameters

**excelSpreadsheetXmlOptions OfficeIMO.Excel.ExcelSpreadsheetXmlOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSpreadsheetXmlOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelSpreadsheetXmlOptions { MaxCells = value };    excelSpreadsheetXmlOptions.MaxCells(value);
```

`public static ExcelSpreadsheetXmlOptions MaxInputBytes(ExcelSpreadsheetXmlOptions excelSpreadsheetXmlOptions, int value)` [#](#method-maxinputbytes-officeimo-excel-excelspreadsheetxmloptions-int32)

Sets [ExcelSpreadsheetXmlOptions.MaxInputBytes](/api/excel/officeimo-excel-excelspreadsheetxmloptions/): Maximum input bytes, or maximum materialized XLSX snapshot bytes on export. Default: 16 MiB.

Parameters

**excelSpreadsheetXmlOptions OfficeIMO.Excel.ExcelSpreadsheetXmlOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSpreadsheetXmlOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Excel.ExcelSpreadsheetXmlOptions { MaxInputBytes = value };    excelSpreadsheetXmlOptions.MaxInputBytes(value);
```

`public static ExcelSpreadsheetXmlOptions MaxNames(ExcelSpreadsheetXmlOptions excelSpreadsheetXmlOptions, int value)` [#](#method-maxnames-officeimo-excel-excelspreadsheetxmloptions-int32)

Sets [ExcelSpreadsheetXmlOptions.MaxNames](/api/excel/officeimo-excel-excelspreadsheetxmloptions/): Maximum defined names imported across all scopes. Default: 10,000.

Parameters

**excelSpreadsheetXmlOptions OfficeIMO.Excel.ExcelSpreadsheetXmlOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSpreadsheetXmlOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelSpreadsheetXmlOptions { MaxNames = value };    excelSpreadsheetXmlOptions.MaxNames(value);
```

`public static ExcelSpreadsheetXmlOptions MaxOutputBytes(ExcelSpreadsheetXmlOptions excelSpreadsheetXmlOptions, int value)` [#](#method-maxoutputbytes-officeimo-excel-excelspreadsheetxmloptions-int32)

Sets [ExcelSpreadsheetXmlOptions.MaxOutputBytes](/api/excel/officeimo-excel-excelspreadsheetxmloptions/): Maximum XML output bytes and aggregate expanded source XML bytes on export. Default: 64 MiB.

Parameters

**excelSpreadsheetXmlOptions OfficeIMO.Excel.ExcelSpreadsheetXmlOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSpreadsheetXmlOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelSpreadsheetXmlOptions { MaxOutputBytes = value };    excelSpreadsheetXmlOptions.MaxOutputBytes(value);
```

`public static ExcelSpreadsheetXmlOptions MaxStyles(ExcelSpreadsheetXmlOptions excelSpreadsheetXmlOptions, int value)` [#](#method-maxstyles-officeimo-excel-excelspreadsheetxmloptions-int32)

Sets [ExcelSpreadsheetXmlOptions.MaxStyles](/api/excel/officeimo-excel-excelspreadsheetxmloptions/): Maximum style definitions. Default: 4096.

Parameters

**excelSpreadsheetXmlOptions OfficeIMO.Excel.ExcelSpreadsheetXmlOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSpreadsheetXmlOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::OfficeIMO.Excel.ExcelSpreadsheetXmlOptions { MaxStyles = value };    excelSpreadsheetXmlOptions.MaxStyles(value);
```

`public static ExcelSpreadsheetXmlOptions MaxWorksheets(ExcelSpreadsheetXmlOptions excelSpreadsheetXmlOptions, int value)` [#](#method-maxworksheets-officeimo-excel-excelspreadsheetxmloptions-int32)

Sets [ExcelSpreadsheetXmlOptions.MaxWorksheets](/api/excel/officeimo-excel-excelspreadsheetxmloptions/): Maximum worksheets. Default: 256.

Parameters

**excelSpreadsheetXmlOptions OfficeIMO.Excel.ExcelSpreadsheetXmlOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSpreadsheetXmlOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                        // C# fluent
new global::OfficeIMO.Excel.ExcelSpreadsheetXmlOptions { MaxWorksheets = value };    excelSpreadsheetXmlOptions.MaxWorksheets(value);
```

`public static ExcelSpreadsheetXmlOptions MaxXmlDepth(ExcelSpreadsheetXmlOptions excelSpreadsheetXmlOptions, int value)` [#](#method-maxxmldepth-officeimo-excel-excelspreadsheetxmloptions-int32)

Sets [ExcelSpreadsheetXmlOptions.MaxXmlDepth](/api/excel/officeimo-excel-excelspreadsheetxmloptions/): Maximum XML nesting depth. Default: 64.

Parameters

**excelSpreadsheetXmlOptions OfficeIMO.Excel.ExcelSpreadsheetXmlOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSpreadsheetXmlOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Excel.ExcelSpreadsheetXmlOptions { MaxXmlDepth = value };    excelSpreadsheetXmlOptions.MaxXmlDepth(value);
```

`public static ExcelSpreadsheetXmlOptions MaxXmlElements(ExcelSpreadsheetXmlOptions excelSpreadsheetXmlOptions, int value)` [#](#method-maxxmlelements-officeimo-excel-excelspreadsheetxmloptions-int32)

Sets [ExcelSpreadsheetXmlOptions.MaxXmlElements](/api/excel/officeimo-excel-excelspreadsheetxmloptions/): Maximum XML elements admitted before materialization, including unsupported content. Default: 1,000,000.

Parameters

**excelSpreadsheetXmlOptions OfficeIMO.Excel.ExcelSpreadsheetXmlOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelSpreadsheetXmlOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelSpreadsheetXmlOptions { MaxXmlElements = value };    excelSpreadsheetXmlOptions.MaxXmlElements(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:2CB57543F6BB4423FC1E1B840EB501F3B72E9D98A73996D243C22C23AEE3D509 -->
