类表示占位符
名称 | 描述性 |
GetClassType系统 | 返回类型ApiPlace |
SetType系统 | 设置占位符类型 |
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!Shape.SetSize(300*36000,130*3600)varoPlacedusts =api.CreatePlaceduceoShape.SetPlaceholder(oPlaceholder)!varstype=oPlaceduce.getClassTypevaroccontent=oshape.getdoccontentvarodente=occontent.getEplement0oParagraph.SetJc("left")!odclips类型=+sypeoPlaceholder.SetType("chart")!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "ApiPlaceholder.pptx")!builder.CloseFile();