AddNumberedCrossRef

数列CrossRefs-srefTypeOParaTo-blink

添加当前段编号交叉引用 请注意此段必须在文档中

参数:

名称 类型 默认 描述性
srefType 编号RefTo

文本或数字引用

OPara spi段

编号段引用(必须在文档中引用)。

链接 布林安 真实性

指定引用是否插入为超链接

BAVEBELOU 布林安 虚伪

指定上下表示引用位置的词应包括在内(不使用文本和eboveBelowssRefType)

sepWith系统 字符串 ...

数分离器(仅使用全CtxParaNumsrefType)

返回时间 :

类型
布林安

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvaro编号=odocument.Create编号letnlvl=0NLVL < 8++nlvl+vlvarsformatString表示letnTemplvl=0templvlNLvlsformatString+NTemplvl+oNumLvl.SetCustomType("lowerRoman", sFormatString, "left")!unmlvl.SetStartoNumLvl.SetSuff("space")!varodeptes=api.Createleoclipse.adText (custom编号lvl+oParagraph.SetNumbering(oNumLvl)!oParagraph.SetContextualSpacing(true)!oDocument.Push(oParagraph)!wara数列sssssseodocuments.GetAll数列odeptes = Api.CreatelementsodText ('例子自定义编号类型可见段号')oDocument.Push(oParagraph)!oParagraph.AddNumberedCrossRef("paraNum", aNumberedParagraphs[1], true, true)!builder.SaveFile("docx", "AddNumberedCrossRef.docx")!builder.CloseFile();

结果文档