返回
OLEFormat 对象,包含指定形状的 OLE 格式属性。适用于代表 OLE 对象的
Shape 或
ShapeRange 对象。只读。
语法
表达式.OLEFormat
表达式 一个代表 Shape 对象的变量。
返回值
OLEFormat
示例
以下示例将当前演示文稿所有幻灯片中的形状循环一遍,并将所有已链接的 WPS 文档设置为手动修改格式。
示例代码 |
let sld = ActivePresentation.Slides
for(let i = 1; i <= sld.Count; i++){
let sh = sld.Item(i).Shapes
for(let x = 1; x <= sh.Count; x++){
if(sh.Item(x).Type == msoLinkedOLEObject){
if(sh.Item(x).OLEFormat.ProgID == "Word.Document"){
sh.Item(x).LinkFormat.AutoUpdate = ppUpdateOptionManual
}
}
}
}
|