工时统计-忽略节假日
GanttView.IsOnlyWorkDay
说明
可读写
是否忽略节假日。
返回值
boolean
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const ganttView = await app.Sheets(1).Views(1);
console.log(ganttView.IsOnlyWorkDay);
ganttView.IsOnlyWorkDay = false;
}
脚本编辑器 示例
javascript
function main() {
const ganttView = Application.Sheets(1).Views(1);
console.log(ganttView.IsOnlyWorkDay);
ganttView.IsOnlyWorkDay = true;
}
main();