# ExcelCellData

A typed snapshot of a worksheet cell value.

Class 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[ExcelCalculationOptions.cs:239](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelCalculationOptions.cs#L239)

**Modifiers**

sealed

A typed snapshot of a worksheet cell value.

## Inheritance

- object
- ExcelCellData

## 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.

### Returned or exposed by 2

- Method [ExcelCell.GetValue](/api/excel/officeimo-excel-excelcell/#method-getvalue)
- Method [ExcelSheet.GetPivotData](/api/excel/officeimo-excel-excelsheet/#method-getpivotdata-string-string-collections-generic-ireadonlydictionary-system-string-system-object)

Filter members 

Show inherited

## Constructors

`public ExcelCellData(ExcelCellDataKind kind, object? value, string? formula = null, string? cachedText = null)` [#](#constructor-ctor-officeimo-excel-excelcelldatakind-object-string-string)

[ExcelCalculationOptions.cs:239](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelCalculationOptions.cs#L239)

Creates a snapshot for a worksheet cell value.

Parameters

**kind OfficeIMO.Excel.ExcelCellDataKind required**

**value object? required**

**formula string? = null optional**

**cachedText string? = null optional**

## 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 ExcelCellDataKind Kind { get; }` [#](#property-kind)

[ExcelCalculationOptions.cs:249](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelCalculationOptions.cs#L249)

Gets the value kind.

`public object? Value { get; }` [#](#property-value)

[ExcelCalculationOptions.cs:254](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelCalculationOptions.cs#L254)

Gets the typed value when one is available.

`public string? Formula { get; }` [#](#property-formula)

[ExcelCalculationOptions.cs:259](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelCalculationOptions.cs#L259)

Gets the formula text for formula cells.

`public string? CachedText { get; }` [#](#property-cachedtext)

[ExcelCalculationOptions.cs:264](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelCalculationOptions.cs#L264)

Gets the cached text from the cell value.

`public bool IsBlank { get; }` [#](#property-isblank)

[ExcelCalculationOptions.cs:269](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelCalculationOptions.cs#L269)

Gets a value indicating whether the cell is blank.

`public bool HasFormula { get; }` [#](#property-hasformula)

[ExcelCalculationOptions.cs:274](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Excel/ExcelCalculationOptions.cs#L274)

Gets a value indicating whether the cell contains a formula.

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