ContactField (对象)
说明
ContactField 联系人字段的属性,修改属性之后需要 FieldDescriptor 调用Apply()方法使得修改生效。如果非联系人字段,无法设置相关属性
属性
浏览器环境示例
javascript
async function example() {
await instance.ready();
const Application = instance.Application
const fieldDescriptor = await Application.Sheets("数据表").FieldDescriptors("@联系人")
const prop = await fieldDescriptor.Contact
prop.IsSupportNotice = true
prop.IsSupportMulti = false
await fieldDescriptor.Apply()
}
脚本编辑器 示例
javascript
function main() {
const fieldDescriptor = Application.Sheets("数据表").FieldDescriptors("@联系人")
const prop = fieldDescriptor.Contact
prop.IsSupportNotice = true
prop.IsSupportMulti = false
fieldDescriptor.Apply()
}
main()