## CellValue::GetValue method


Gets or sets the cell value.

```cpp
Aspose::Cells::Object Aspose::Cells::CellValue::GetValue()
```

## Remarks


The value must be of the correct type of object corresponding to the Type: <table><tr><th>Type </th><th>Value  </th></tr><tr><td>CellValueType.IsNull</td><td>null, any other object will be ignored  </td></tr><tr><td>CellValueType.IsNumeric</td><td>double  </td></tr><tr><td>CellValueType.IsDateTime</td><td>DateTime  </td></tr><tr><td>CellValueType.IsString</td><td>string  </td></tr><tr><td>CellValueType.IsBool</td><td>bool  </td></tr><tr><td>CellValueType.IsError</td><td>error string such as "#VALUE!", "#NAME?", ...  </td></tr></table>
## See Also

* Class [Object](../../object/)
* Class [CellValue](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
