GetAllOleObjects

GetAllOleObjects数组 }

返回数组从滑动大师返回所有OLE对象

参数:

这种方法没有任何参数

返回时间 :

类型
数组

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0varomasterssservations.GetMasters0var oOleObject = Api.CreateOleObject("https://i.ytimg.com/vi_webp/SKGz4pmnpgY/sddefault.webp", 130 * 36000, 90 * 36000, "https://youtu.be/SKGz4pmnpgY", "asc.{38E022EA-AD92-45FC-B22B-49DF39746DB4}")!OleObject.SetSizeOleObject.SetPostition(70*36000,30*3600)oMaster.AddObject(oOleObject)!var aleObjects =omaster.getAllOleObjectsvar sAppId=aleObjects[0].GetApplicationIdvar OGs1 = Api.CreateGradientStopVar OGS2 = Api.CreateGradient StopVaroFinll=Api.CreateLinearGradientFillvarostroke=api.CreatestrokeVar ODrawing=api.CreateShapeODrawing.SetPostition(20*36000,170*3600)varoccontent=odrawing.etcontentvarodente=occontent.getEplement0odision.AddTextoMaster.AddObject(oDrawing)!builder.SaveFile("pptx", "GetAllOleObjects.pptx")!builder.CloseFile();

结果文档