GetAllShape

GetAllShapes数组 }

返回数组从滑动布局返回所有形状对象

参数:

这种方法没有任何参数

返回时间 :

类型
数组

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0varomasterssservations.GetMasters0VaroLayotsevaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!Shape.SetSize(300*36000,130*3600)oSlide.RemoveAllObjects()!oLayout.AddObject(oShape)!varashpesssvaroccontent =ashapes[0].etcontentvarodente=occontent.getEplement0oParagraph.SetJc("left")!odtext (mex元件添加到当前布局中builder.SaveFile("pptx", "GetAllShapes.pptx")!builder.CloseFile();

结果文档