# LegacySpreadsheetImportResult

Owns an imported editable workbook and its source-loss report.

Class 

`OfficeIMO.Excel.Legacy`

**Namespace**

`OfficeIMO.Excel.Legacy`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

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

**Implements**

`IDisposable`

**Modifiers**

sealed

Owns an imported editable workbook and its source-loss report.

## Inheritance

- object
- LegacySpreadsheetImportResult

## Usage

Explore 1 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.

### Returned or exposed by 1

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

Filter members 

Show inherited

## Methods

`public void Dispose()` [#](#method-dispose)

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

`public ExcelDocument RequireValue()` [#](#method-requirevalue)

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

Returns the imported workbook.

Returns

`ExcelDocument`

`public void ThrowIfLoss()` [#](#method-throwifloss)

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

Returns the imported workbook or throws when the import was lossy.

## 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 ExcelDocument Value { get; }` [#](#property-value)

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

Gets the normal OfficeIMO workbook used by XLSX and converter packages.

`public LegacySpreadsheetDetection Detection { get; }` [#](#property-detection)

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

Gets detected family and profile information.

`public OfficeLegacyImportReport Report { get; }` [#](#property-report)

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

Gets structured/salvage quality, inert-content flags, and explicit losses.

`public IReadOnlyDictionary<string, string> Metadata { get; }` [#](#property-metadata)

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

Gets recovered workbook metadata and names that could not be safely projected.

`public IReadOnlyList<LegacySpreadsheetChartMetadata> Charts { get; }` [#](#property-charts)

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

Gets bounded chart metadata discovered in the source.

`public IReadOnlyList<LegacySpreadsheetCellContent> Cells { get; }` [#](#property-cells)

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

Gets recovered source cells, including cached values retained beside translated formulas.

`public IReadOnlyList<LegacySpreadsheetNameContent> Names { get; }` [#](#property-names)

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

Gets recovered source names and whether each was projected into the workbook.

`public bool HasLoss { get; }` [#](#property-hasloss)

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

Gets whether the import used salvage recovery or omitted, blocked, or kept source content inert.

<!-- PowerForge markdown artifact sha256:0C0C671275E22378B9761C0DB528EA5B708033377839FB1369A7E1E6557F43AA -->
