Class CellValue

Class CellValue

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

Represents the cell value and corresponding type.

public class CellValue

Inheritance

objectCellValue

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

CellValue()

public CellValue()

Properties

Type

Gets/sets the type of cell value.

public CellValueType Type { get; set; }

Property Value

CellValueType

Value

Gets/sets the cell value.

public object Value { get; set; }

Property Value

object

Remarks

The value must be of the correct type of object corresponding to the Aspose.Cells.CellValue.Type:

TypeValue
Aspose.Cells.CellValueType.IsNullnull, any other object will be ignored
Aspose.Cells.CellValueType.IsNumericdouble
Aspose.Cells.CellValueType.IsDateTimeDateTime
Aspose.Cells.CellValueType.IsStringstring
Aspose.Cells.CellValueType.IsBoolbool
Aspose.Cells.CellValueType.IsErrorerror string such as "#VALUE!", "#NAME?", ...