Aspose::Cells::CellValue::SetValue method

CellValue::SetValue method

Gets/sets the cell value.

void Aspose::Cells::CellValue::SetValue(const Aspose::Cells::Object &value)

Remarks

The value must be of the correct type of object corresponding to the Type:

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

See Also