设置单元格的填充颜色
RecordRange.Interior
说明
可读 返回当前RecordRange首个单元格的填充属性Interior
返回值
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const recordRange = await app.Sheet(1).RecordRange(1);
const Interior = await recordRange.Interior
Interior.Color = "#ff00ff"
}
脚本编辑器 示例
javascript
function main() {
const recordRange = Application.Sheet(1).RecordRange(1);
const Interior = recordRange.Interior
Interior.Color = "#ff00ff"
}
main()