时间线颜色
GanttView.TimelineColor
说明
可读写
时间线颜色,值为Hex格式的RGB颜色值,如:#FF0000。
返回值
String
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const ganttView = await app.Sheets(1).Views(1);
console.log(ganttView.TimelineColor);
ganttView.TimelineColor = '#97E4E4';
}
脚本编辑器 示例
javascript
function main() {
const ganttView = Application.Sheets(1).Views(1);
console.log(ganttView.TimelineColor);
ganttView.TimelineColor = '#97E4E4';
}
main();