public class FormulaCellValue extends Object implements CellValue<String>, CellSetter
| Constructor and Description |
|---|
FormulaCellValue(String formula)
构造
|
FormulaCellValue(String formula,
Object result)
构造
|
FormulaCellValue(String formula,
Object result,
org.apache.poi.ss.usermodel.CellType resultType)
构造
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getResult()
获取结果
|
org.apache.poi.ss.usermodel.CellType |
getResultType()
获取结果类型
|
String |
getValue()
获取单元格值
|
void |
setValue(org.apache.poi.ss.usermodel.Cell cell)
自定义单元格值设置,同时可以设置单元格样式、格式等信息
|
String |
toString() |
public FormulaCellValue(String formula)
formula - 公式public FormulaCellValue(String formula, Object result)
formula - 公式result - 结果public void setValue(org.apache.poi.ss.usermodel.Cell cell)
CellSettersetValue in interface CellSettercell - 单元格public Object getResult()
public org.apache.poi.ss.usermodel.CellType getResultType()
null表示未明确Copyright © 2025. All rights reserved.