选项标题
FieldDescriptor.Title(属性)
说明
可读写
级联选项各级选项的标题,最多可以设置四级标题
返回值
Array
浏览器环境示例
javascript
async function example() {
await instance.ready();
const Application = instance.Application;
const fieldDescriptor = await Application.Sheets("数据表").FieldDescriptors("@级联选项")
const prop = await fieldDescriptor.Cascade
prop.Title = ["第一级标题","第二级标题","第三级标题"]
fieldDescriptor.Apply()
}
脚本编辑器 示例
javascript
function main() {
const fieldDescriptor = Application.Sheets(1).FieldDescriptors(2)
const prop = await fieldDescriptor.Cascade
prop.Title = ["第一级标题","第二级标题","第三级标题"]
fieldDescriptor.Apply()
}
main()