添加Layout

添加Layout

添加布局到指定的幻灯片母版

参数:

名称 类型 默认 描述性
NPOs 数组 ApiMaster.GetLayoutsCount()

位置布局添加

欧拉尤特 ApiLayout

布局添加

返回时间 :

类型
布林安

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0varomasterssservations.GetMasters0varnCountBefore=omaster.GetLayoutCountVaroLayot=api.CreateLayotOmaster.AddLayot/0/OLayotvarnCountafe=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.AddText ("布局数目后添加新布局:+NCountBefore)oParagraph.AddLineBreak()!od.adText ("添加新布局后布局数:+nCountafe)oSlide.RemoveAllObjects()!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "AddLayout.pptx")!builder.CloseFile();

结果文档