从当前幻灯片布局删除对象(图像、形状或图表)。
名称 | 类型 | 默认 | 描述性 |
NPOs | 数组 | 位置删除对象 |
|
NCount | 数组 | 一号 | 数元素删除 |
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0varomasterssservations.GetMasters0VaroLayotseoSlide.RemoveAllObjects()!varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar ODrawing = Api.CreateShapeODrawing.SetPostition(30*360001267200)ODrawing.SetSize(150*36000,130*3600)varopyDrawing=odrawing.copyoCopyDrawing.SetPostition(160*360001267200)oCopyDrawing.SetSizeoLayout.AddObject(oDrawing)!oLayout.AddObject(oCopyDrawing)!Layout.reveObject(1,1)varoccontent=odrawing.getdoccontentvarodente=occontent.getEplement0oParagraph.SetJc("left")!adText (二立方体从此布局删除 )!builder.SaveFile("pptx", "RemoveObject.pptx")!builder.CloseFile();