默认值
AddressField.PresetAddress(属性)
说明
可读写
地址字段的默认值,当设置了IsUsePresetAddress为false后,PresetAddress不生效
返回值
Object
浏览器环境示例
javascript
async function example() {
await instance.ready();
const Application = instance.Application;
const fieldDescriptor = await Application.Sheets("数据表").FieldDescriptors("@地址")
const prop = await fieldDescriptor.Address
prop.IsUsePresetAddress = true
prop.PresetAddress = {detail:"", districts:["广东省","江门市"]}
fieldDescriptor.Apply()
}
脚本编辑器 示例
javascript
function main() {
const fieldDescriptor = Application.Sheets("数据表").FieldDescriptors("@地址")
const prop = fieldDescriptor.Address
prop.IsUsePresetAddress = true
prop.PresetAddress = {detail:"", districts:["广东省","江门市"]}
fieldDescriptor.Apply()
}
main()