单元格
概述
Cell 是 Aspose.Cells FOSS for Java 中的一个类。
表示工作表中的单元格。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
value | Object | 读取 | 返回该值。 |
stringValue | String | 读取 | 返回字符串值。 |
displayStringValue | String | 读取 | 返回显示字符串值。 |
formula | String | 读取 | 返回公式。 |
type | CellValueType | 读取 | 返回类型。 |
style | Style | 读取 | 返回样式。 |
方法
| 签名 | 描述 |
|---|---|
getValue() → Object | 返回该值。 |
setValue(value: Object) | 设置该值。 |
getStringValue() → String | 返回字符串值。 |
getDisplayStringValue() → String | 返回显示字符串值。 |
getFormula() → String | 返回公式。 |
setFormula(value: String) | 设置公式。 |
getType() → CellValueType | 返回类型。 |
putValue(value: String) | 存储该值。 |
putValue(value: int) | 存储该值。 |
putValue(value: double) | 存储该值。 |
putValue(value: boolean) | 存储该值。 |
putValue(value: java.time.LocalDateTime) | 存储该值。 |
getStyle() → Style | 返回样式。 |
setStyle(style: Style) | 设置样式。 |