---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/cellvalue
---

# CellValue

## Overview

`CellValue` is a class in Aspose.Cells FOSS for C++.

This class declares 19 methods for CellValue objects in C++ programs.
Available methods include: `AsBool`, `AsDateTime`, `AsDouble`, `AsInteger`, `AsString`, `CellValue`, `IsBool`, `IsDateTime`, `IsDouble`, `IsEmpty`, `IsInteger`, `IsString`.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `CellValue()` | Calls CellValue on this CellValue instance. |
| `CellValue(v: int)` | Calls CellValue(v) on this CellValue instance. |
| `CellValue(v: double)` | Calls CellValue(v) on this CellValue instance. |
| `CellValue(v: bool)` | Calls CellValue(v) on this CellValue instance. |
| `CellValue(v: char)` | Calls CellValue(v) on this CellValue instance. |
| `CellValue(v: std::string)` | Calls CellValue(v) on this CellValue instance. |
| `CellValue(v: std::string_view)` | Calls CellValue(v) on this CellValue instance. |
| `CellValue(v: DateTime)` | Calls CellValue(v) on this CellValue instance. |
| `IsEmpty()` → `bool` | Returns true if empty is set. |
| `IsInteger()` → `bool` | Returns true if integer is set. |
| `IsDouble()` → `bool` | Returns true if double is set. |
| `IsBool()` → `bool` | Returns true if bool is set. |
| `IsString()` → `bool` | Returns true if string is set. |
| `IsDateTime()` → `bool` | Returns true if date time is set. |
| `AsDouble()` → `double` | Calls AsDouble on this CellValue instance. |
| `AsInteger()` → `int` | Calls AsInteger on this CellValue instance. |
| `AsBool()` → `bool` | Calls AsBool on this CellValue instance. |
| `AsString()` → `std::string` | Calls AsString on this CellValue instance. |
| `AsDateTime()` → `DateTime` | Calls AsDateTime on this CellValue instance. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)