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
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
Value
Gets/sets the cell value.
public object Value { get; set; }
Property Value
Remarks
The value must be of the correct type of object corresponding to the Aspose.Cells.CellValue.Type:
Type | Value |
---|---|
Aspose.Cells.CellValueType.IsNull | null, any other object will be ignored |
Aspose.Cells.CellValueType.IsNumeric | double |
Aspose.Cells.CellValueType.IsDateTime | DateTime |
Aspose.Cells.CellValueType.IsString | string |
Aspose.Cells.CellValueType.IsBool | bool |
Aspose.Cells.CellValueType.IsError | error string such as "#VALUE!", "#NAME?", ... |