Cell
Overview
Cell 是 C++ 的 FOSS 中的 Aspose.Cells 类.
代表单个工作表的单元格,并显示值,公式和样式操作.
本类提供了17种方法,用于在C++程序中使用细胞对象. 有的方法包括: GetColumn, GetDisplayStringValue, GetFormula, GetRow, GetStringValue, GetStyle, GetType, GetValue, PutValue, SetFormula, SetStyle, SetValue. 在安装了Aspose.Cells FOSS for C++ 包后,所有公众成员都可以访问任何C ++应用程序.
Methods
| Signature | Description |
|---|---|
GetRow() → int | 得到了单元格的行索引. |
GetColumn() → int | 得到了该单元格的列索引. |
GetValue() → CellValue | 获取或设置逻辑单元格值. |
SetValue(value: CellValue) | 设置值的值. |
GetStringValue() → std::string | 得到一个稳定的字符串表示的细胞值,而不应用基于风格显示格式化的. |
GetDisplayStringValue() → std::string | 得到由单元格值,样式和工作簿文化生成的显示文本. |
GetFormula() → std::string | 得到或设置细胞公式. |
SetFormula(value: std::string_view) | 设置公式值. |
GetType() → CellValueType | 得到当前的逻辑单元格值类型. |
PutValue(value: char) | 将单元格值设置为字符串. |
PutValue(value: std::string_view) | 在这个Cell实例上调用PutValue. |
PutValue(value: int) | 将单元格值设置为整数. |
PutValue(value: double) | 将单元格值设置为浮点数. |
PutValue(value: bool) | 将单元格值设置为布尔数. |
PutValue(value: DateTime) | 将单元格值设置为 DateTime. |
GetStyle() → Style | 得到一个独立的复制品. |
SetStyle(style: Style) | 将给出的样式对象替换为单元格风格. |