阿比沙比

新ApiShape ()

类表示形状

方法论

名称 描述性
GetClassType系统

返回ApiShape类类型

GetContent

返回形状内部内容并插入段落或文本运行

GetDocCont

6.2中折旧返回形状内部内容并插入段落或文本运行

SetVerticalTextAlign

设置垂直对齐形状内容可插入段或文本运行

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationsetSizes(254*36000,190*3600)varoSlide=oPresentation.getCrentSlideoSlide.RemoveAllObjects()!varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!varoccontent=oshape.getdoccontentoShape.SetVerticalTextAlign("bottom")!varodeptes=api.CreateleoParagraph.SetJc("left")!odtext ("我们从形状上删除所有元素并插入新段内adText(垂直对接底部)oDocContent.Push(oParagraph)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "ApiShape.pptx")!builder.CloseFile();

结果文档