Filters.Operator(属性)
说明
可读写
设置或返回头部筛选条件
返回值
浏览器环境示例
javascript
// 获取筛选的头部筛选条件
async function example() {
await instance.ready();
const app = instance.Application;
const filters = await app.Sheets(1).Views(1).Filters;
const operator = filters.Operator;
}
// 设置筛选的头部筛选条件
async function example() {
await instance.ready();
const app = instance.Application;
app.Sheets(1).Views(1).Filters.Operator = FilterOpType.Or;
}
脚本编辑器 示例
javascript
function main() {
const filters = Application.Sheets(1).Views(1).Filters;
const operator = filters.Operator;
operator = FilterOpType.Or;
}
main();