Attachment.ImgSize(属性)
说明
只读 返回图片的尺寸
返回值
String
浏览器环境示例
javascript
async function example() {
await instance.ready();
const app = instance.Application;
const value = await app.Sheets(1).Views(1).RecordRange(1,"@图片和附件").Value
const attments = await value.Value
console.log(await attments[0].ImgSize)
}
脚本编辑器 示例
javascript
function main() {
const value = ActiveView.RecordRange(1, "@图片和附件").Value
const attments = value.Value
console.log(attments[0].ImgSize)
}
main()