跳到主要内容

set_one_by_one

  • 逐个写入指定范围单元格

声明

array set_one_by_one(array vals, int top, int left, int bottom, int right)

参数

参数名描述
vals写入数据“二维数组”
top范围最顶行
left范围最左列
bottom范围最底行
right范围最右列

返回值

返回ExcelErrorCode“二维数组”

使用方式

// 设置(5, 5)到(9, 9)矩形范围内单元格的内容为 "Country"
excel_obj.set_one_by_one([[99, 99], [99, 99]], 5, 5, 6, 6);
excel_obj.save();

返回文档