Cell
Overview
Cell is a class in Aspose.Cells FOSS for C++.
Represents a single worksheet cell and exposes value, formula, and style operations.
Methods
| Signature | Description |
|---|---|
GetRow() → int | Gets the row index of the cell. |
GetColumn() → int | Gets the column index of the cell. |
GetValue() → CellValue | Gets or sets the logical cell value. |
SetValue(value: CellValue) | |
GetStringValue() → std::string | Gets a stable string representation of the cell value without applying style-based display formatting. |
GetDisplayStringValue() → std::string | Gets the display text generated from the cell value, style, and workbook culture. |
GetFormula() → std::string | Gets or sets the cell formula. |
SetFormula(value: std::string_view) | |
GetType() → CellValueType | Gets the current logical cell value type. |
PutValue(value: char) | Sets the cell value to a string. |
PutValue(value: std::string_view) | Sets the cell value to a string. |
PutValue(value: int) | Sets the cell value to a string. |
PutValue(value: double) | Sets the cell value to a string. |
PutValue(value: bool) | Sets the cell value to a string. |
PutValue(value: DateTime) | Sets the cell value to a string. |
GetStyle() → Style | Gets a detached copy of the cell style. |
SetStyle(style: Style) | Replaces the cell style with the supplied style object. |