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