设置背景图
QueryView.BackgroundImage
说明
可读写
查询视图的背景图,注意:可以设置为 url/base64
返回值
Attachment
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const view = await app.Sheets(1).Views(1);
view.BackgroundImage = "https://kdocs-om.wpscdn.cn/om/image.png"
}
脚本编辑器 示例
javascript
function main() {
const view = Application.Sheets(1).Views(1);
view.BackgroundImage = "https://kdocs-om.wpscdn.cn/om/image.png"
}
main();