类表示段落
名称 | 描述性 |
添加元素 | 向当前段添加元素 |
添加线刷 | 添加分行到当前位置并启动新行下一元素 |
添加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("xlsx")!varoWorksheetvaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = oWorksheet.varoccontentssvarodente=occontent.getEplement0var ORun=api.CreateRunORun.AddTextoRun.AddTabStop()!oRun.AddText("" + oParagraph.GetElementsCount())!oRun.AddLineBreak()!oParagraph.AddElement(oRun)!ORUNDEDGEPLEoRun.SetBold(true)!oParagraph.AddLineBreak()!odtext ("此段中文本由中心对齐)oParagraph.SetJc("center")!varodepet1=api.Createleodisce1.AddText后加标签站oParagraph1.AddTabStop()!odisce1.AddTextodisce1.AddText(“这些句子用于添加线程表示目的”)oParagraph1.SetIndFirstLine(1440)!oDocContent.Push(oParagraph1)!varodis2=api.CreatelevarndfirstLine=odepce1.getIndfirstLineodistic2.AddTextoDocContent.Push(oParagraph2)!varodis3=api.Createlevar slassTypes3GetClassTypeoParagraph3.AddLineBreak()!odisc3.adText (slass类型=+ssstype)oDocContent.Push(oParagraph3)!VaroNextLEGE2GETNEoNextParagraph.SetBold(true)!Var Oplistedude =OODUCT3.GetPreviveoPreviousParagraph.SetItalic(true)!builder.SaveFile("xlsx", "ApiParagraph.xlsx")!builder.CloseFile();