从当前幻灯片母版删除布局
名称 | 类型 | 默认 | 描述性 |
NPOs | 数组 | 位置布局删除 |
|
NCount | 数组 | 一号 | 布局删除数 |
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0varomasterssservations.GetMasters0varnCountBefore=omaster.GetLayoutCountOmaster.reveLayout(0,2)varnCountafe=omaster.getLayoutCountvaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!Shape.SetSize(300*36000,130*3600)varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0oParagraph.SetJc("left")!ocent.adText删除前布局数:+NCountBeforeoParagraph.AddLineBreak()!od.adText删除后布局数:oSlide.RemoveAllObjects()!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "RemoveLayout.pptx")!builder.CloseFile();