展开/收起
NoticeBar.Visible(属性)
说明
可读写
设置公告栏可见性
返回值
Boolean
浏览器环境示例
javascript
async function getVisible() {
await instance.ready();
const app = instance.Application;
const noticeBar = await app.Window.NoticeBar
const visible = await noticeBar.Visible // 为true公告栏隐藏,为false公告栏显示
}
async function setVisible() {
await instance.ready();
const app = instance.Application;
const noticeBar = await app.Window.NoticeBar
noticeBar.Visible = false // 隐藏公告栏
noticeBar.Visible = true // 显示公告栏
}