get_font_style_attr_range
- 获取范围内单元格指定字体属性
声明
array get_font_style_attr_range(enum ExcelFontAttribute style, int top, int left, int bottom, int right)
参数
参数名 | 描述 |
---|---|
ExcelFontAttribute | 指定属性 |
top | 范围顶行号 |
left | 范围左列号 |
bottom | 范围底行号 |
right | 范围右列号 |
返回值
返回单元格字体指定属性值“二维数组”
使用方式
// 获取(1, 2)到(2, 5)矩形范围内字体大小
array block_font_attr_arr = excel_obj.get_font_style_attr_range(ExcelFontAttribute.FONT_SIZE, 1, 2, 2, 5);