跳到主要内容

get_background

  • 获取指定单元格背景颜色

声明

string get_background(int row, int column)

参数

参数名描述
row指定单元格行
column指定单元格列

返回值

返回颜色字符串

使用方式

// 获取在单元格(1, 1)处的单元格背景颜色
string color = excel_obj.get_background(1, 1);

返回文档