# ExcelReaderOptionsFluent

The fluent methods of ExcelReaderOptions, 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 [ExcelReaderOptions](/api/excel/officeimo-excel-excelreaderoptions/), 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
- ExcelReaderOptionsFluent

Filter members 

Show inherited

## Methods

`public static ExcelReaderOptions A1Range(ExcelReaderOptions excelReaderOptions, string? value)` [#](#method-a1range-officeimo-excel-excelreaderoptions-string)

Sets [ExcelReaderOptions.A1Range](/api/excel/officeimo-excel-excelreaderoptions/): Gets or sets an optional A1 range exposed from each selected worksheet. When omitted, the worksheet used range is exposed.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { A1Range = value };    excelReaderOptions.A1Range(value);
```

`public static ExcelReaderOptions CancellationToken(ExcelReaderOptions excelReaderOptions, CancellationToken value)` [#](#method-cancellationtoken-officeimo-excel-excelreaderoptions-threading-cancellationtoken)

Sets [ExcelReaderOptions.CancellationToken](/api/excel/officeimo-excel-excelreaderoptions/): Cancellation observed while opening and streaming workbook data.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value System.Threading.CancellationToken required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

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

`public static ExcelReaderOptions Configure(ExcelReaderOptions excelReaderOptions, Action<ExcelReaderOptions> configure)` [#](#method-configure-officeimo-excel-excelreaderoptions-action-officeimo-excel-excelreaderoptions)

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

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

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

Assignments applied in order.

Returns

`ExcelReaderOptions` The same instance.

Examples

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

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

Culture 2 overloads

`public static ExcelReaderOptions Culture(ExcelReaderOptions excelReaderOptions, CultureInfo value)` [#](#method-culture-officeimo-excel-excelreaderoptions-globalization-cultureinfo)

Sets [ExcelReaderOptions.Culture](/api/excel/officeimo-excel-excelreaderoptions/): Culture used when parsing numbers and dates stored as strings.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value System.Globalization.CultureInfo required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { Culture = value };    excelReaderOptions.Culture(value);
```

`public static ExcelReaderOptions Culture(ExcelReaderOptions excelReaderOptions, Action<CultureInfo> configure)` [#](#method-culture-officeimo-excel-excelreaderoptions-action-system-globalization-cultureinfo)

Configures [ExcelReaderOptions.Culture](/api/excel/officeimo-excel-excelreaderoptions/) in place: Culture used when parsing numbers and dates stored as strings.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**configure System.Action<System.Globalization.CultureInfo> required**

Configures the value.

Returns

`ExcelReaderOptions` The same instance.

`public static ExcelReaderOptions EnableSinglePassReading(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-enablesinglepassreading-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.EnableSinglePassReading](/api/excel/officeimo-excel-excelreaderoptions/): Returns XLSX and XLSB rows from the forward-only data reader while the rest of the worksheet is still being decompressed and validated, instead of validating the whole worksheet before the first row. Defaults to false.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { EnableSinglePassReading = value };    excelReaderOptions.EnableSinglePassReading(value);
```

`public static ExcelReaderOptions EnableWorksheetPrefetch(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-enableworksheetprefetch-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.EnableWorksheetPrefetch](/api/excel/officeimo-excel-excelreaderoptions/): Gets or sets whether the selected XLSX worksheet should be decompressed on a background worker while workbook metadata is parsed. The default is false.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { EnableWorksheetPrefetch = value };    excelReaderOptions.EnableWorksheetPrefetch(value);
```

`public static ExcelReaderOptions Execution(ExcelReaderOptions excelReaderOptions, Action<ExcelExecutionPolicy> configure)` [#](#method-execution-officeimo-excel-excelreaderoptions-action-officeimo-excel-excelexecutionpolicy)

Configures [ExcelReaderOptions.Execution](/api/excel/officeimo-excel-excelreaderoptions/) in place: Execution policy used to decide Sequential vs Parallel conversion. Reuses the writer-side policy for symmetry.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

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

Configures the value.

Returns

`ExcelReaderOptions` The same instance.

`public static ExcelReaderOptions FillBlanksInRanges(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-fillblanksinranges-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.FillBlanksInRanges](/api/excel/officeimo-excel-excelreaderoptions/): When true, matrix/range readers fill unspecified cells with nulls.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { FillBlanksInRanges = value };    excelReaderOptions.FillBlanksInRanges(value);
```

`public static ExcelReaderOptions HasHeaderRow(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-hasheaderrow-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.HasHeaderRow](/api/excel/officeimo-excel-excelreaderoptions/): Gets or sets whether the first row supplies column names.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { HasHeaderRow = value };    excelReaderOptions.HasHeaderRow(value);
```

`public static ExcelReaderOptions InferDataTableColumnTypes(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-inferdatatablecolumntypes-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.InferDataTableColumnTypes](/api/excel/officeimo-excel-excelreaderoptions/): When true, DataTable reads infer stable column types from the materialized range. Mixed-type columns stay object-typed.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { InferDataTableColumnTypes = value };    excelReaderOptions.InferDataTableColumnTypes(value);
```

`public static ExcelReaderOptions InferSchema(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-inferschema-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.InferSchema](/api/excel/officeimo-excel-excelreaderoptions/): Gets or sets whether the data-reader schema is inferred from worksheet values. Native cell values are preserved regardless of this setting.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { InferSchema = value };    excelReaderOptions.InferSchema(value);
```

`public static ExcelReaderOptions MappingErrorValuePolicy(ExcelReaderOptions excelReaderOptions, DataMappingErrorValuePolicy value)` [#](#method-mappingerrorvaluepolicy-officeimo-excel-excelreaderoptions-officeimo-data-datamappingerrorvaluepolicy)

Sets [ExcelReaderOptions.MappingErrorValuePolicy](/api/excel/officeimo-excel-excelreaderoptions/): Gets or sets whether typed mapping failures may include source values. Defaults to DataMappingErrorValuePolicy.Include for compatibility.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value OfficeIMO.Data.DataMappingErrorValuePolicy required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MappingErrorValuePolicy = value };    excelReaderOptions.MappingErrorValuePolicy(value);
```

`public static ExcelReaderOptions MaxDataReaderBufferedCells(ExcelReaderOptions excelReaderOptions, long value)` [#](#method-maxdatareaderbufferedcells-officeimo-excel-excelreaderoptions-int64)

Sets [ExcelReaderOptions.MaxDataReaderBufferedCells](/api/excel/officeimo-excel-excelreaderoptions/): Maximum cells materialized by a data-reader chunk or schema sample.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value long required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxDataReaderBufferedCells = value };    excelReaderOptions.MaxDataReaderBufferedCells(value);
```

`public static ExcelReaderOptions MaxDataReaderChunkRows(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-maxdatareaderchunkrows-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.MaxDataReaderChunkRows](/api/excel/officeimo-excel-excelreaderoptions/): Maximum worksheet rows materialized in one data-reader chunk.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxDataReaderChunkRows = value };    excelReaderOptions.MaxDataReaderChunkRows(value);
```

`public static ExcelReaderOptions MaxDataReaderColumns(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-maxdatareadercolumns-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.MaxDataReaderColumns](/api/excel/officeimo-excel-excelreaderoptions/): Maximum columns exposed by one range data reader.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxDataReaderColumns = value };    excelReaderOptions.MaxDataReaderColumns(value);
```

`public static ExcelReaderOptions MaxDataReaderSchemaSampleRows(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-maxdatareaderschemasamplerows-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.MaxDataReaderSchemaSampleRows](/api/excel/officeimo-excel-excelreaderoptions/): Maximum rows retained for data-reader schema inference.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxDataReaderSchemaSampleRows = value };    excelReaderOptions.MaxDataReaderSchemaSampleRows(value);
```

`public static ExcelReaderOptions MaxInputBytes(ExcelReaderOptions excelReaderOptions, long value)` [#](#method-maxinputbytes-officeimo-excel-excelreaderoptions-int64)

Sets [ExcelReaderOptions.MaxInputBytes](/api/excel/officeimo-excel-excelreaderoptions/): Maximum workbook bytes buffered by the Excel reader APIs. Default: 512 MiB.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value long required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

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

`public static ExcelReaderOptions MaxMetadataPartBytes(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-maxmetadatapartbytes-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.MaxMetadataPartBytes](/api/excel/officeimo-excel-excelreaderoptions/): Maximum decompressed bytes accepted from one workbook metadata part. Default: 16 MiB. Worksheet data, shared strings, and styles retain their format-specific limits.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxMetadataPartBytes = value };    excelReaderOptions.MaxMetadataPartBytes(value);
```

`public static ExcelReaderOptions MaxPendingTypedRows(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-maxpendingtypedrows-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.MaxPendingTypedRows](/api/excel/officeimo-excel-excelreaderoptions/): Maximum out-of-order rows retained by one typed streaming read. Default: 8,192.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxPendingTypedRows = value };    excelReaderOptions.MaxPendingTypedRows(value);
```

`public static ExcelReaderOptions MaxRangeCells(ExcelReaderOptions excelReaderOptions, long value)` [#](#method-maxrangecells-officeimo-excel-excelreaderoptions-int64)

Sets [ExcelReaderOptions.MaxRangeCells](/api/excel/officeimo-excel-excelreaderoptions/): Maximum cells materialized by one dense range read. Default: 1,000,000.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value long required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxRangeCells = value };    excelReaderOptions.MaxRangeCells(value);
```

`public static ExcelReaderOptions MaxSharedStringCharacters(ExcelReaderOptions excelReaderOptions, long value)` [#](#method-maxsharedstringcharacters-officeimo-excel-excelreaderoptions-int64)

Sets [ExcelReaderOptions.MaxSharedStringCharacters](/api/excel/officeimo-excel-excelreaderoptions/): Maximum aggregate characters loaded from the shared-string table.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value long required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxSharedStringCharacters = value };    excelReaderOptions.MaxSharedStringCharacters(value);
```

`public static ExcelReaderOptions MaxSharedStringItemCharacters(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-maxsharedstringitemcharacters-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.MaxSharedStringItemCharacters](/api/excel/officeimo-excel-excelreaderoptions/): Maximum character length for one shared-string item. The default matches Excel's worksheet cell text limit.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxSharedStringItemCharacters = value };    excelReaderOptions.MaxSharedStringItemCharacters(value);
```

`public static ExcelReaderOptions MaxSharedStringItems(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-maxsharedstringitems-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.MaxSharedStringItems](/api/excel/officeimo-excel-excelreaderoptions/): Maximum number of entries loaded from the workbook shared-string table. This protects readers from malformed workbooks that advertise or contain unbounded shared-string tables.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxSharedStringItems = value };    excelReaderOptions.MaxSharedStringItems(value);
```

`public static ExcelReaderOptions MaxWorksheets(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-maxworksheets-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.MaxWorksheets](/api/excel/officeimo-excel-excelreaderoptions/): Maximum worksheet definitions accepted while reading workbook metadata. Default: 16,384.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

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

`public static ExcelReaderOptions MaxXlsbCells(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-maxxlsbcells-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.MaxXlsbCells](/api/excel/officeimo-excel-excelreaderoptions/): Maximum populated cell records accepted across one XLSB workbook. Default: 4,000,000. This is an aggregate safety limit, independent of per-chunk data-reader buffering.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxXlsbCells = value };    excelReaderOptions.MaxXlsbCells(value);
```

`public static ExcelReaderOptions MaxXlsbLogicalRows(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-maxxlsblogicalrows-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.MaxXlsbLogicalRows](/api/excel/officeimo-excel-excelreaderoptions/): Maximum logical rows emitted across one XLSB workbook data-reader operation. Default: 1,048,576. Sparse row gaps consume this aggregate budget just like populated rows.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxXlsbLogicalRows = value };    excelReaderOptions.MaxXlsbLogicalRows(value);
```

`public static ExcelReaderOptions MaxXmlDataReaderBufferedCharacters(ExcelReaderOptions excelReaderOptions, long value)` [#](#method-maxxmldatareaderbufferedcharacters-officeimo-excel-excelreaderoptions-int64)

Sets [ExcelReaderOptions.MaxXmlDataReaderBufferedCharacters](/api/excel/officeimo-excel-excelreaderoptions/): Maximum decoded characters charged during XML data-reader preparation or streaming in one physical row, or across all buffered out-of-order rows. Default: 32 Mi characters.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value long required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxXmlDataReaderBufferedCharacters = value };    excelReaderOptions.MaxXmlDataReaderBufferedCharacters(value);
```

`public static ExcelReaderOptions NormalizeHeaders(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-normalizeheaders-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.NormalizeHeaders](/api/excel/officeimo-excel-excelreaderoptions/): Normalize headers for object mapping by trimming and collapsing whitespace.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { NormalizeHeaders = value };    excelReaderOptions.NormalizeHeaders(value);
```

`public static ExcelReaderOptions NumericAsDecimal(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-numericasdecimal-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.NumericAsDecimal](/api/excel/officeimo-excel-excelreaderoptions/): When true, numeric cells are returned as decimal where possible; otherwise double is used.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { NumericAsDecimal = value };    excelReaderOptions.NumericAsDecimal(value);
```

`public static ExcelReaderOptions Password(ExcelReaderOptions excelReaderOptions, string? value)` [#](#method-password-officeimo-excel-excelreaderoptions-string)

Sets [ExcelReaderOptions.Password](/api/excel/officeimo-excel-excelreaderoptions/): Password used when opening an encrypted workbook.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { Password = value };    excelReaderOptions.Password(value);
```

`public static ExcelReaderOptions SchemaSampleRows(ExcelReaderOptions excelReaderOptions, int value)` [#](#method-schemasamplerows-officeimo-excel-excelreaderoptions-int32)

Sets [ExcelReaderOptions.SchemaSampleRows](/api/excel/officeimo-excel-excelreaderoptions/): Gets or sets the maximum rows sampled when schema inference is enabled.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { SchemaSampleRows = value };    excelReaderOptions.SchemaSampleRows(value);
```

`public static ExcelReaderOptions SheetIndex(ExcelReaderOptions excelReaderOptions, int? value)` [#](#method-sheetindex-officeimo-excel-excelreaderoptions-nullable-system-int32)

Sets [ExcelReaderOptions.SheetIndex](/api/excel/officeimo-excel-excelreaderoptions/): Gets or sets the zero-based worksheet index exposed by an Excel data reader. Cannot be combined with [ExcelReaderOptions.SheetName](/api/excel/officeimo-excel-excelreaderoptions/).

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value int? required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { SheetIndex = value };    excelReaderOptions.SheetIndex(value);
```

`public static ExcelReaderOptions SheetName(ExcelReaderOptions excelReaderOptions, string? value)` [#](#method-sheetname-officeimo-excel-excelreaderoptions-string)

Sets [ExcelReaderOptions.SheetName](/api/excel/officeimo-excel-excelreaderoptions/): Gets or sets the worksheet exposed by [ExcelDocument.OpenReader](/api/excel/officeimo-excel-exceldocument/). When omitted, worksheets are exposed in workbook order through DbDataReader.NextResult.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value string? required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { SheetName = value };    excelReaderOptions.SheetName(value);
```

`public static ExcelReaderOptions SkipEmptyMappedRows(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-skipemptymappedrows-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.SkipEmptyMappedRows](/api/excel/officeimo-excel-excelreaderoptions/): When automatically mapping worksheet rows to typed objects, omit data rows with no stored value in any column bound to the destination type. Formatting and values in unmapped columns do not keep a row. Cell-value converters do not affect this decision. Defaults to false.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { SkipEmptyMappedRows = value };    excelReaderOptions.SkipEmptyMappedRows(value);
```

`public static ExcelReaderOptions StrictTypedMapping(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-stricttypedmapping-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.StrictTypedMapping](/api/excel/officeimo-excel-excelreaderoptions/): When true, typed object readers throw if selected headers cannot be mapped deterministically to writable properties.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { StrictTypedMapping = value };    excelReaderOptions.StrictTypedMapping(value);
```

Transport 2 overloads

`public static ExcelReaderOptions Transport(ExcelReaderOptions excelReaderOptions, ExcelLoadOptions? value)` [#](#method-transport-officeimo-excel-excelreaderoptions-officeimo-excel-excelloadoptions)

Sets [ExcelReaderOptions.Transport](/api/excel/officeimo-excel-excelreaderoptions/): HTTP admission and transport settings for URI reader sources.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value OfficeIMO.Excel.ExcelLoadOptions? required**

The value.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                            // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { Transport = value };    excelReaderOptions.Transport(value);
```

`public static ExcelReaderOptions Transport(ExcelReaderOptions excelReaderOptions, Action<ExcelLoadOptions> configure)` [#](#method-transport-officeimo-excel-excelreaderoptions-action-officeimo-excel-excelloadoptions)

Configures [ExcelReaderOptions.Transport](/api/excel/officeimo-excel-excelreaderoptions/) in place (creating it when not set): HTTP admission and transport settings for URI reader sources.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

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

Configures the value.

Returns

`ExcelReaderOptions` The same instance.

`public static ExcelReaderOptions TreatDatesUsingNumberFormat(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-treatdatesusingnumberformat-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.TreatDatesUsingNumberFormat](/api/excel/officeimo-excel-excelreaderoptions/): Interpret numeric cells with a date-like number format as DateTime. Calendar formats use the workbook date system; time-only and elapsed formats use OLE Automation dates as a carrier for the unshifted time serial.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                              // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { TreatDatesUsingNumberFormat = value };    excelReaderOptions.TreatDatesUsingNumberFormat(value);
```

`public static ExcelReaderOptions UseCachedFormulaResult(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-usecachedformularesult-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.UseCachedFormulaResult](/api/excel/officeimo-excel-excelreaderoptions/): Use cached formula results when present; otherwise returns the formula string.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { UseCachedFormulaResult = value };    excelReaderOptions.UseCachedFormulaResult(value);
```

`public static ExcelReaderOptions ValidateWorksheetBeforeFirstRow(ExcelReaderOptions excelReaderOptions, bool value = true)` [#](#method-validateworksheetbeforefirstrow-officeimo-excel-excelreaderoptions-boolean)

Sets [ExcelReaderOptions.ValidateWorksheetBeforeFirstRow](/api/excel/officeimo-excel-excelreaderoptions/): Validates the whole XLSX worksheet before the data reader returns its first row. Defaults to false: worksheets of 1 MB or more that declare their dimension are decompressed and checked on background threads while rows are returned.

Parameters

**excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`ExcelReaderOptions` The same instance.

Examples

```csharp
// C# initializer or property                                                                  // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { ValidateWorksheetBeforeFirstRow = value };    excelReaderOptions.ValidateWorksheetBeforeFirstRow(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:D7C148993980CC86C1C86D07E8E3986565FCC57E341C9A211FCC1A1DA9B553C1 -->
