标签:颜色 etc double 坐标 cti pos shortcut meta merge
var cell = cells.get(0,0); cell.putValue(“ Hello”);
var first = cell.getStringValue();
//将整数放入单元格 cell = cells.get(“ B1”);
cell.putValue(12); var second = cell.getIntValue();
//将双精度放入单元格 cell = cells.get(0,2);
cell.putValue(-1.234);
var third = cell.getDoubleValue();
//将公式放入单元格 cell = cells.get(“ D1”);
cell.setFormula(“ = B1 + C1”);
//将组合公式:“ sum(average(b1,c1),b1)”放到b2处的单元格中 cell = cells.get(“ b2”);
cell.setFormula(“ = sum(average(b1,c1),b1)”);
//设置单元格样式 var style = cell.getStyle();
//设置背景颜色 style.setBackgroundColor(aspose.cells.Color.getYellow());
//设置单元格格式 style.getFont()。setName(“ Courier New”); style.setVerticalAlignment(aspose.cells.TextAlignmentType.TOP); cell.setStyle(style);
标签:颜色 etc double 坐标 cti pos shortcut meta merge
原文地址:https://www.cnblogs.com/RJHYCL/p/12801095.html