Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OdsCellValue

OfficeIMO.OpenDocument

Namespace
OfficeIMO.OpenDocument
Assembly
OfficeIMO.OpenDocument
Source revision
be6c300e4ab1 with working tree changes
Base
ValueType
Modifiers
sealed

An immutable typed ODS cell value retaining its invariant lexical form.

Inheritance

  • ValueType
  • OdsCellValue

Usage

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

Methods

public bool AsBoolean() #

Parses the value as a boolean.

Returns

bool
public DateTimeOffset AsDateTimeOffset() #

Parses the value as an ODF date or date-time.

Returns

DateTimeOffset
public decimal AsDecimal() #

Parses the value as a decimal.

Returns

decimal
public double AsDouble() #

Parses the value as a double.

Returns

double
public TimeSpan AsTimeSpan() #

Parses the ODF duration used for time and duration cells.

Returns

TimeSpan
public override string ToString() #

Returns the fully qualified type name of this instance.

Returns

string The fully qualified type name.

Properties

public static OdsCellValue Empty { get; } #

Empty value.

public OdsCellValueKind Kind { get; } #

Logical value kind.

public string LexicalValue { get; } #

Invariant value as stored in the ODF attribute.

public string DisplayText { get; } #

Displayed text stored in cell paragraphs, when available.

public string? CurrencyCode { get; } #

Currency code for currency values.