# ExcelFormulaValue

Typed scalar value used by custom formula functions.

Struct 

`OfficeIMO.Excel`

**Namespace**

`OfficeIMO.Excel`

**Assembly**

`OfficeIMO.Excel`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

[ExcelCustomFormulaFunction.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/ExcelCustomFormulaFunction.cs#L43)

**Base**

`ValueType`

**Modifiers**

sealed

Typed scalar value used by custom formula functions.

## Inheritance

- ValueType
- ExcelFormulaValue

## Usage

Explore 8 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 6

- Method [ExcelCustomFormulaFunction.EndInvoke](/api/excel/officeimo-excel-excelcustomformulafunction/#method-endinvoke-iasyncresult)
- Method [ExcelCustomFormulaFunction.Invoke](/api/excel/officeimo-excel-excelcustomformulafunction/#method-invoke-excelcustomformulafunctioncontext-ireadonlylist-excelformulavalue)
- Method [ExcelFormulaValue.FromError](/api/excel/officeimo-excel-excelformulavalue/#method-fromerror-string)
- Method [ExcelFormulaValue.FromNumber](/api/excel/officeimo-excel-excelformulavalue/#method-fromnumber-double)
- Method [ExcelFormulaValue.FromText](/api/excel/officeimo-excel-excelformulavalue/#method-fromtext-string)
- Property [ExcelFormulaValue.Blank](/api/excel/officeimo-excel-excelformulavalue/#property-blank)

### Accepted by parameters 2

- Method [ExcelCustomFormulaFunction.BeginInvoke](/api/excel/officeimo-excel-excelcustomformulafunction/#method-begininvoke-excelcustomformulafunctioncontext-ireadonlylist-excelformulavalue-asynccallback-object) parameter `arguments`
- Method [ExcelCustomFormulaFunction.Invoke](/api/excel/officeimo-excel-excelcustomformulafunction/#method-invoke-excelcustomformulafunctioncontext-ireadonlylist-excelformulavalue) parameter `arguments`

Filter members 

Show inherited

## Methods

`public static ExcelFormulaValue FromError(string errorCode)` [#](#method-fromerror-string)

[ExcelCustomFormulaFunction.cs:57](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/ExcelCustomFormulaFunction.cs#L57)

Creates an Excel error formula value.

Parameters

**errorCode string required**

Returns

`ExcelFormulaValue`

`public static ExcelFormulaValue FromNumber(double value)` [#](#method-fromnumber-double)

[ExcelCustomFormulaFunction.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/ExcelCustomFormulaFunction.cs#L43)

Creates a finite numeric formula value.

Parameters

**value double required**

Returns

`ExcelFormulaValue`

`public static ExcelFormulaValue FromText(string? value)` [#](#method-fromtext-string)

[ExcelCustomFormulaFunction.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/ExcelCustomFormulaFunction.cs#L52)

Creates a text formula value.

Parameters

**value string? required**

Returns

`ExcelFormulaValue`

## Inherited Methods

`public override bool Equals(object? obj)` [#](#method-equals-object)

Inherited from ValueType

Parameters

**obj object? required**

Returns

`bool`

`public override int GetHashCode()` [#](#method-gethashcode)

Inherited from ValueType

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public override string? ToString()` [#](#method-tostring)

Inherited from ValueType

Returns

`string?`

## Properties

`public static ExcelFormulaValue Blank { get; }` [#](#property-blank)

[ExcelCustomFormulaFunction.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/ExcelCustomFormulaFunction.cs#L30)

Blank formula value.

`public ExcelFormulaValueKind Kind { get; }` [#](#property-kind)

[ExcelCustomFormulaFunction.cs:33](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/ExcelCustomFormulaFunction.cs#L33)

Gets the value kind.

`public double Number { get; }` [#](#property-number)

[ExcelCustomFormulaFunction.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/ExcelCustomFormulaFunction.cs#L36)

Gets the number when [ExcelFormulaValue.Kind](/api/excel/officeimo-excel-excelformulavalue/) is [ExcelFormulaValueKind.Number](/api/excel/officeimo-excel-excelformulavaluekind/).

`public string? Text { get; }` [#](#property-text)

[ExcelCustomFormulaFunction.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Excel/ExcelCustomFormulaFunction.cs#L39)

Gets the text or error code for text and error values.

<!-- PowerForge markdown artifact sha256:6E77BA49BEDEB2BCF9FFCE257B26947B7C6B04A947AE6D9095A9AF229D610F6F -->
