GetContent

GetContentApiDocumentContent}

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

参数:

这种方法没有任何参数

返回时间 :

类型
ApiDocumentContent

实例

拷贝代码
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)!varoccontentssoShape.SetVerticalTextAlign("bottom")!varodeptes=api.CreateleoParagraph.SetJc("left")!odtext ("我们从形状上删除所有元素并插入新段内adText(垂直对接底部)oDocContent.Push(oParagraph)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "GetDocContent.pptx")!builder.CloseFile();

结果文档