# OdsFormulaValue

Immutable scalar formula result.

Struct 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OdsFormulaValue.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L30)

**Base**

`ValueType`

**Modifiers**

sealed

Immutable scalar formula result.

## Inheritance

- ValueType
- OdsFormulaValue

## Usage

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

- Property [OdsFormulaEvaluationResult.Value](/api/open-document/officeimo-opendocument-odsformulaevaluationresult/#property-value)
- Method [OdsFormulaValue.Boolean](/api/open-document/officeimo-opendocument-odsformulavalue/#method-boolean-boolean)
- Method [OdsFormulaValue.Error](/api/open-document/officeimo-opendocument-odsformulavalue/#method-error-string)
- Method [OdsFormulaValue.Number](/api/open-document/officeimo-opendocument-odsformulavalue/#method-number-double)
- Method [OdsFormulaValue.Text](/api/open-document/officeimo-opendocument-odsformulavalue/#method-text-string)
- Property [OdsFormulaValue.Empty](/api/open-document/officeimo-opendocument-odsformulavalue/#property-empty)

Filter members 

Show inherited

## Methods

`public bool AsBoolean()` [#](#method-asboolean)

[OdsFormulaValue.cs:50](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L50)

Boolean value.

Returns

`bool`

`public double AsNumber()` [#](#method-asnumber)

[OdsFormulaValue.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L42)

Numeric value.

Returns

`double`

`public string AsText()` [#](#method-astext)

[OdsFormulaValue.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L58)

Text or error payload.

Returns

`string`

`public static OdsFormulaValue Boolean(bool value)` [#](#method-boolean-boolean)

[OdsFormulaValue.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L34)

Creates a Boolean value.

Parameters

**value bool required**

Returns

`OdsFormulaValue`

`public static OdsFormulaValue Error(string message)` [#](#method-error-string)

[OdsFormulaValue.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L36)

Creates an error value.

Parameters

**message string required**

Returns

`OdsFormulaValue`

`public static OdsFormulaValue Number(double value)` [#](#method-number-double)

[OdsFormulaValue.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L30)

Creates a numeric value.

Parameters

**value double required**

Returns

`OdsFormulaValue`

`public static OdsFormulaValue Text(string? value)` [#](#method-text-string)

[OdsFormulaValue.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L32)

Creates a text value.

Parameters

**value string? required**

Returns

`OdsFormulaValue`

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

[OdsFormulaValue.cs:66](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L66)

Returns the fully qualified type name of this instance.

Returns

`string` The fully qualified type name.

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

## Properties

`public static OdsFormulaValue Empty { get; }` [#](#property-empty)

[OdsFormulaValue.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L28)

Empty formula value.

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

[OdsFormulaValue.cs:39](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OpenDocument/Spreadsheet/Formulas/OdsFormulaValue.cs#L39)

Result kind.

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