GetLayoutCount

GetLayoutCount

返回多布局对象

参数:

这种方法没有任何参数

返回时间 :

类型
数组

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0varomasterssservations.GetMasters0varnLayouts=omaster.getLayoutCountoSlide.RemoveAllObjects()!varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!Shape.SetSize(300*36000,130*3600)varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0oParagraph.SetJc("left")!oddText(布局数=+nlayouts)oSlide.AddObject(oShape)!builder.SaveFile("pptx", "GetLayoutsCount.pptx")!builder.CloseFile();

结果文档