# LegacySpreadsheetImportOptions

Options for safe read-only legacy-spreadsheet import.

Class 

`OfficeIMO.Excel.Legacy`

**Namespace**

`OfficeIMO.Excel.Legacy`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

[LegacySpreadsheetContracts.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/Legacy/LegacySpreadsheetContracts.cs#L42)

**Modifiers**

sealed

Options for safe read-only legacy-spreadsheet import.

## Inheritance

- object
- LegacySpreadsheetImportOptions

## Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 2

- Method [LegacySpreadsheetImporter.Detect](/api/excel/officeimo-excel-legacy-legacyspreadsheetimporter/#method-detect-string-officeimo-excel-legacy-legacyspreadsheetimportoptions-threading-cancellationtoken) parameter `options`
- Method [LegacySpreadsheetImporter.Import](/api/excel/officeimo-excel-legacy-legacyspreadsheetimporter/#method-import-string-officeimo-excel-legacy-legacyspreadsheetimportoptions-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public LegacySpreadsheetImportOptions()` [#](#constructor-ctor)

[LegacySpreadsheetContracts.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/Legacy/LegacySpreadsheetContracts.cs#L42)

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

## Properties

`public OfficeLegacyImportLimits Limits { get; set; }` [#](#property-limits)

[LegacySpreadsheetContracts.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/Legacy/LegacySpreadsheetContracts.cs#L42)

Gets or sets hard resource limits.

`public LegacySpreadsheetFormat? FormatHint { get; set; }` [#](#property-formathint)

[LegacySpreadsheetContracts.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/Legacy/LegacySpreadsheetContracts.cs#L44)

Gets or sets an explicit family for a known weak or damaged source.

`public string? SourceName { get; set; }` [#](#property-sourcename)

[LegacySpreadsheetContracts.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/Legacy/LegacySpreadsheetContracts.cs#L46)

Gets or sets the source name used for extension-assisted detection.

`public bool RequireStructured { get; set; }` [#](#property-requirestructured)

[LegacySpreadsheetContracts.cs:48](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/Legacy/LegacySpreadsheetContracts.cs#L48)

Gets or sets whether salvage-quality output must be rejected.

`public Encoding? TextEncoding { get; set; }` [#](#property-textencoding)

[LegacySpreadsheetContracts.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/Legacy/LegacySpreadsheetContracts.cs#L50)

Gets or sets the encoding of SYLK/DIF input without a BOM. Null selects Windows-1252. A Unicode BOM takes precedence; invalid byte sequences are rejected.

<!-- PowerForge markdown artifact sha256:BB3CB9A7EFDFDC77D86D0BA6F168CC50EBCFF79EAD3FCAAD6B9B8900676B97A4 -->
