Cell

概述

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 ++应用程序.

方法

Signature描述情况
GetRow()int获取单元格的行索引。.
GetColumn()int获取单元格的列索引。.
GetValue()CellValue获取或设置逻辑单元格值。.
SetValue(value: CellValue)设置 value 的值。.
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)将给出的样式对象替换为单元格风格.

查看更多

 中文