Cell

Overview

Cell is a class in Aspose.Cells FOSS for C++.

Represents a single worksheet cell and exposes value, formula, and style operations.

This class provides 17 methods for working with Cell objects in C++ programs. Available methods include: GetColumn, GetDisplayStringValue, GetFormula, GetRow, GetStringValue, GetStyle, GetType, GetValue, PutValue, SetFormula, SetStyle, SetValue. All public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

Methods

SignatureDescription
GetRow()intGets the row index of the cell.
GetColumn()intGets the column index of the cell.
GetValue()CellValueGets or sets the logical cell value.
SetValue(value: CellValue)Sets the value value.
GetStringValue()std::stringGets a stable string representation of the cell value without applying style-based display formatting.
GetDisplayStringValue()std::stringGets the display text generated from the cell value, style, and workbook culture.
GetFormula()std::stringGets or sets the cell formula.
SetFormula(value: std::string_view)Sets the formula value.
GetType()CellValueTypeGets the current logical cell value type.
PutValue(value: char)Sets the cell value to a string.
PutValue(value: std::string_view)Calls PutValue on this Cell instance.
PutValue(value: int)Sets the cell value to an integer.
PutValue(value: double)Sets the cell value to a floating-point number.
PutValue(value: bool)Sets the cell value to a boolean.
PutValue(value: DateTime)Sets the cell value to a DateTime.
GetStyle()StyleGets a detached copy of the cell style.
SetStyle(style: Style)Replaces the cell style with the supplied style object.

See Also

 English