Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OdsFormulaValue

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
be6c300e4ab1 with working tree changes
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.

Methods

public bool AsBoolean() #

Boolean value.

Returns

bool
public double AsNumber() #

Numeric value.

Returns

double
public string AsText() #

Text or error payload.

Returns

string
public static OdsFormulaValue Boolean(bool value) #

Creates a Boolean value.

Parameters

value bool required
public static OdsFormulaValue Error(string message) #

Creates an error value.

Parameters

message string required
public static OdsFormulaValue Number(double value) #

Creates a numeric value.

Parameters

value double required
public static OdsFormulaValue Text(string? value) #

Creates a text value.

Parameters

value string? required
public override string ToString() #

Returns the fully qualified type name of this instance.

Returns

string The fully qualified type name.

Properties

public static OdsFormulaValue Empty { get; } #

Empty formula value.

public OdsFormulaValueKind Kind { get; } #

Result kind.