Table of Contents

Class NoxCellData

Namespace
Nox.Grid.Server
Assembly
Nox.Grid.Server.dll

A cell. The value is stored in exactly one type-specific property (Text, Number, Bool, Date, Error). They are kept separate instead of a single object so types stay unambiguous in JSON.

public sealed class NoxCellData
Inheritance
NoxCellData
Inherited Members

Properties

Bool

public bool? Bool { get; set; }

Property Value

bool?

Col

public int Col { get; set; }

Property Value

int

Date

public DateTime? Date { get; set; }

Property Value

DateTime?

Error

Error value (#DIV/0!, etc.).

public string Error { get; set; }

Property Value

string

Formula

Formula ("=SUM(A1:A3)"). If set, the value above is the computed result.

public string Formula { get; set; }

Property Value

string

Number

public double? Number { get; set; }

Property Value

double?

Row

public int Row { get; set; }

Property Value

int

Style

public NoxCellStyleData Style { get; set; }

Property Value

NoxCellStyleData

Text

public string Text { get; set; }

Property Value

string

Methods

GetValue()

The value (string, double, bool, DateTime, NoxFormulaError for errors, or null if none).

public object GetValue()

Returns

object

SetValue(object)

Sets the value (numeric types are stored as double).

public void SetValue(object value)

Parameters

value object