隐藏/显示字段
Field.Visible(属性)
说明
可读写
视图的字段是否可见
返回值
Boolean
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const field = await app.Sheets(1).Views(1).Fields(1)
field.Visible = false
}
脚本编辑器示例
javascript
function main() {
const field = Application.Sheets(1).Views(1).Fields(1)
const visible = field.Visible
console.log(visible)
}
main()