i讲解

新建Api讲解

类表示演示文稿

方法论

名称 描述性
添加Master

向演示文稿主文集添加幻灯片主文

添加滑动

向演示文稿结尾添加新幻灯片

应用me

对演示文稿中所有幻灯片应用主题

CreateNewHistoryPoint

创建新历史点

GetClassType系统

返回类型ApiExpressation类

GetCrent滑动

返回当前滑动

GetCurSlideIndex

返回当前幻灯片索引

GetHiight系统

返回英语测量单元显示高度

获取Master

滑动母函数返回演示文稿中的位置

GetmastersCount

返回多滑动主控

获取滑动Byindex

依位置返回滑动演示文稿

GetSlidesCount

返回多页幻灯片

获取Width

返回英语计量单元显示宽度

删除滑动

从演示文稿中删除一系列幻灯片删除演示文稿中未指定参数的所有幻灯片

ReplaceCurrentImage

以指定的图像替换当前图像

segLanguage

指定语言校验拼法语法

集分

设置当前演示文稿的大小

滑动toJSON

将当前apresentation对象的幻灯片转换为JSON对象

ToJSON系统

转换apresentation对象为JSON对象

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationsetSizes(254*36000,190*3600)var slide1=oPresentation.getCrentSlideoSlide1.RemoveAllObjects()!varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0adText ("这只是样本文本.")oPresentation.CreateNewHistoryPoint()!odeptes = Api.CreatelementsadText (新历史点刚创建)oParagraph.AddLineBreak()!var slassType=oPresentation.GetClassTypeodstext (slass类型=+ssstype)VarnSlideIndex=oPresentation.GetCurSlideIndexoParagraph.AddLineBreak()!oclipse.adText(当前滑动索引=+ncrentSlideIndex)oDocContent.Push(oParagraph)!oSlide1.AddObject(oShape)!varoSlide2=api.CreateSlideoPresentation.AddSlide(oSlide2)!builder.SaveFile("pptx", "ApiPresentation.pptx")!builder.CloseFile();

结果文档