Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

ExcelReaderOptionsFluent

OfficeIMO.Excel

Namespace
OfficeIMO.Excel
Assembly
OfficeIMO.Excel
Modifiers
static

The fluent methods of 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

Methods

public static ExcelReaderOptions A1Range(ExcelReaderOptions excelReaderOptions, string? value) #

Sets ExcelReaderOptions.A1Range: 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

// C# initializer or property                                          // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { A1Range = value };    excelReaderOptions.A1Range(value);
public static ExcelReaderOptions CancellationToken(ExcelReaderOptions excelReaderOptions, CancellationToken value) #

Sets ExcelReaderOptions.CancellationToken: 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

// 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) #

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

// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { CellValueConverter = value };    excelReaderOptions.Configure(configured => configured.CellValueConverter = value);
// 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) #

Sets ExcelReaderOptions.Culture: 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

// 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) #

Configures ExcelReaderOptions.Culture 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) #

Sets ExcelReaderOptions.EnableSinglePassReading: 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

// 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) #

Sets ExcelReaderOptions.EnableWorksheetPrefetch: 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

// 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) #

Configures ExcelReaderOptions.Execution 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) #

Sets ExcelReaderOptions.FillBlanksInRanges: 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

// 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) #

Sets ExcelReaderOptions.HasHeaderRow: 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

// 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) #

Sets ExcelReaderOptions.InferDataTableColumnTypes: 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

// 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) #

Sets ExcelReaderOptions.InferSchema: 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

// C# initializer or property                                              // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { InferSchema = value };    excelReaderOptions.InferSchema(value);
public static ExcelReaderOptions MappingErrorValuePolicy(ExcelReaderOptions excelReaderOptions, DataMappingErrorValuePolicy value) #

Sets ExcelReaderOptions.MappingErrorValuePolicy: 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

// C# initializer or property                                                          // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MappingErrorValuePolicy = value };    excelReaderOptions.MappingErrorValuePolicy(value);
public static ExcelReaderOptions MaxDataReaderBufferedCells(ExcelReaderOptions excelReaderOptions, long value) #

Sets ExcelReaderOptions.MaxDataReaderBufferedCells: 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

// C# initializer or property                                                             // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxDataReaderBufferedCells = value };    excelReaderOptions.MaxDataReaderBufferedCells(value);
public static ExcelReaderOptions MaxDataReaderChunkRows(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.MaxDataReaderChunkRows: 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

// C# initializer or property                                                         // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxDataReaderChunkRows = value };    excelReaderOptions.MaxDataReaderChunkRows(value);
public static ExcelReaderOptions MaxDataReaderColumns(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.MaxDataReaderColumns: 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

// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxDataReaderColumns = value };    excelReaderOptions.MaxDataReaderColumns(value);
public static ExcelReaderOptions MaxDataReaderSchemaSampleRows(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.MaxDataReaderSchemaSampleRows: 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

// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxDataReaderSchemaSampleRows = value };    excelReaderOptions.MaxDataReaderSchemaSampleRows(value);
public static ExcelReaderOptions MaxInputBytes(ExcelReaderOptions excelReaderOptions, long value) #

Sets ExcelReaderOptions.MaxInputBytes: 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

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxInputBytes = value };    excelReaderOptions.MaxInputBytes(value);
public static ExcelReaderOptions MaxMetadataPartBytes(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.MaxMetadataPartBytes: 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

// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxMetadataPartBytes = value };    excelReaderOptions.MaxMetadataPartBytes(value);
public static ExcelReaderOptions MaxPendingTypedRows(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.MaxPendingTypedRows: 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

// C# initializer or property                                                      // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxPendingTypedRows = value };    excelReaderOptions.MaxPendingTypedRows(value);
public static ExcelReaderOptions MaxRangeCells(ExcelReaderOptions excelReaderOptions, long value) #

Sets ExcelReaderOptions.MaxRangeCells: 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

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxRangeCells = value };    excelReaderOptions.MaxRangeCells(value);
public static ExcelReaderOptions MaxSharedStringCharacters(ExcelReaderOptions excelReaderOptions, long value) #

Sets ExcelReaderOptions.MaxSharedStringCharacters: 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

// C# initializer or property                                                            // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxSharedStringCharacters = value };    excelReaderOptions.MaxSharedStringCharacters(value);
public static ExcelReaderOptions MaxSharedStringItemCharacters(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.MaxSharedStringItemCharacters: 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

// C# initializer or property                                                                // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxSharedStringItemCharacters = value };    excelReaderOptions.MaxSharedStringItemCharacters(value);
public static ExcelReaderOptions MaxSharedStringItems(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.MaxSharedStringItems: 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

// C# initializer or property                                                       // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxSharedStringItems = value };    excelReaderOptions.MaxSharedStringItems(value);
public static ExcelReaderOptions MaxWorksheets(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.MaxWorksheets: 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

// C# initializer or property                                                // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxWorksheets = value };    excelReaderOptions.MaxWorksheets(value);
public static ExcelReaderOptions MaxXlsbCells(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.MaxXlsbCells: 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

// C# initializer or property                                               // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxXlsbCells = value };    excelReaderOptions.MaxXlsbCells(value);
public static ExcelReaderOptions MaxXlsbLogicalRows(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.MaxXlsbLogicalRows: 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

// C# initializer or property                                                     // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { MaxXlsbLogicalRows = value };    excelReaderOptions.MaxXlsbLogicalRows(value);
public static ExcelReaderOptions MaxXmlDataReaderBufferedCharacters(ExcelReaderOptions excelReaderOptions, long value) #

Sets ExcelReaderOptions.MaxXmlDataReaderBufferedCharacters: 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

// 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) #

Sets ExcelReaderOptions.NormalizeHeaders: 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

// 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) #

Sets ExcelReaderOptions.NumericAsDecimal: 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

// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { NumericAsDecimal = value };    excelReaderOptions.NumericAsDecimal(value);
public static ExcelReaderOptions Password(ExcelReaderOptions excelReaderOptions, string? value) #

Sets ExcelReaderOptions.Password: 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

// C# initializer or property                                           // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { Password = value };    excelReaderOptions.Password(value);
public static ExcelReaderOptions SchemaSampleRows(ExcelReaderOptions excelReaderOptions, int value) #

Sets ExcelReaderOptions.SchemaSampleRows: 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

// C# initializer or property                                                   // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { SchemaSampleRows = value };    excelReaderOptions.SchemaSampleRows(value);
public static ExcelReaderOptions SheetIndex(ExcelReaderOptions excelReaderOptions, int? value) #

Sets ExcelReaderOptions.SheetIndex: Gets or sets the zero-based worksheet index exposed by an Excel data reader. Cannot be combined with ExcelReaderOptions.SheetName.

Parameters

excelReaderOptions OfficeIMO.Excel.ExcelReaderOptions required
The instance.
value int? required
The value.

Returns

ExcelReaderOptions The same instance.

Examples

// C# initializer or property                                             // C# fluent
new global::OfficeIMO.Excel.ExcelReaderOptions { SheetIndex = value };    excelReaderOptions.SheetIndex(value);
public static ExcelReaderOptions SheetName(ExcelReaderOptions excelReaderOptions, string? value) #

Sets ExcelReaderOptions.SheetName: Gets or sets the worksheet exposed by ExcelDocument.OpenReader. 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

// 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) #

Sets ExcelReaderOptions.SkipEmptyMappedRows: 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

// 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) #

Sets ExcelReaderOptions.StrictTypedMapping: 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

// 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) #

Sets ExcelReaderOptions.Transport: 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

// 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) #

Configures ExcelReaderOptions.Transport 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) #

Sets ExcelReaderOptions.TreatDatesUsingNumberFormat: 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

// 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) #

Sets ExcelReaderOptions.UseCachedFormulaResult: 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

// 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) #

Sets ExcelReaderOptions.ValidateWorksheetBeforeFirstRow: 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

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