类表示段落
名称 | 描述性 |
添加元素 | 向当前段添加元素 |
添加线刷 | 添加分行到当前位置并启动新行下一元素 |
添加TabStop | 向当前段落添加标签站 |
添加图文 | 向当前段添加文本 |
拷贝 | 创建段副本ingnore注释、注解引用、复杂域 |
删除 | 删除当前段 |
GetClassType系统 | 返回类型Apiews类 |
GetEment元素 | 返回段元素使用指定位置 |
GetElementsCount | 返回当前段数个元素 |
GetdFirstLine | 返回段首行缩进 |
GetIndleft | 返回段左侧缩进 |
GetIndRight系统 | 返回右侧缩进 |
GetJC | 返回段落内容说明 |
GetNext | 返回下一段 |
GetParaPr | 返回段落属性 |
获取前置 | 返回上段 |
取间距后 | 返回当前段后值的间距 |
GetSpacingBefore | 返回当前段前值的间距 |
GetSpacingLineRule | 返回数行间距规则 |
GetSpacingLineValue | 返回段行间距值 |
RemoveAllElements | 删除当前段落中所有元素
|
删除元素 | 使用指定位置删除元素
|
SetBullet系统 | 设置项目符号或编号当前段 |
设置高度 | 指定加亮颜色并应用为当前段内容背景 |
SetIndFirstLine | 设置段首行缩进 |
SetIndleft | 设置左侧缩进 |
sepIndRight系统 | 设置右侧缩进 |
赛特Jc | 设置段落内容说明 |
设置间隔后 | 设置当前段后间距ifAfterAuto参数正确性,则nafe值忽略ifAuto后参数不指定,则解释为假 |
SetSpacingBefore | 设置当前段前的间距eforeAuto参数值正确时,nfore值忽略if BeforeAuto参数未定义,则它将被解读为假 |
设置间距线 | 设置段行间距slineRuce参数值或为slast或cexial,nline值将解释为点20sslineRuce参数值为auti |
etTabs | 指定自定义制表符序列,当前段落中任制表符使用警告:aPos数组和aval数组长度必须是等价对等 |
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!Var OGs1 = Api.CreateGradientStopVar OGS2 = Api.CreateGradient StopvaroFinll =api.CriateRadialGratientFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0oParagraph.SetJc("left")!var ORun=api.CreateRunORun.AddTextoRun.AddTabStop()!oRun.AddText("" + oParagraph.GetElementsCount())!oParagraph.AddElement(oRun)!oParagraph.AddLineBreak()!odText ("这是分行分行后的一个文本.")oParagraph.AddLineBreak()!odtext ("这只是样本文本后加三块站oParagraph.AddTabStop()!oParagraph.AddTabStop()!oParagraph.AddTabStop()!oments.adText (“这是标签站后启动的文本 ”)!odeptes = Api.CreatelementsoParagraph.SetJc("left")!odtext ("这只是拷贝文本样本")oDocContent.Push(oParagraph)!Var OCOPYLEDY=ODUE.CopYoDocContent.Push(oCopyParagraph)!var slassType=oledge.getClassTypeoCopyParagraph.AddLineBreak()!oCopyRedection.AddTextodeptes = Api.CreatelementsoDocContent.Push(oParagraph)!oParagraph.SetIndFirstLine(1440)!varndfirstLinesodfirstLineoSlide.AddObject(oShape)!builder.SaveFile("pptx", "ApiParagraph.pptx")!builder.CloseFile();