View.Description(属性)
说明
视图说明
返回值
String
浏览器环境示例
javascript
// 获取视图说明
async function getDescription() {
await instance.ready();
const app = instance.Application;
const view = await app.Sheets(1).Views(1);
const description = await view.Description;
}
// 设置视图说明
async function setDescription() {
await instance.ready();
const app = instance.Application;
const view = await app.Sheets(1).Views(1);
view.Description = '新视图说明';
}
脚本编辑器 示例
javascript
function main() {
const view = Application.Sheets(1).Views(1);
const description = view.Description;
view.Description = '新视图说明';
}
main()