WPS 基础接口 > 演示 API 参考 > Application > 属性 > Application.Windows 属性
返回一个代表所有打开的文档窗口的 DocumentWindows 集合。只读。

语法

表达式.Windows

表达式   一个代表 Application 对象的变量。

返回值
DocumentWindows

示例
以下示例关闭除当前窗口外的所有窗口。

示例代码
let aw = Application.Windows
for(let i = aw.Count; i >= 2; i--) {
    aw.Item(i).Close()
}


请参阅