AddCaptionCrossRef

添加CaptionCrossRefs

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

参数:

名称 类型 默认 描述性
编程 标题Label字符串

标题标签(Equation,Fuore,Table或another标题标签)

srefType 标题RefTo

文本或数字引用

OPara spi段

标题段引用(必须在文档中引用)。

链接 布林安 真实性

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

BAVEBELOU 布林安 虚伪

指定上下字表示引用位置应包含(仅使用页NumssrefType)

返回时间 :

类型
布林安

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0Var ODraining = Api.CreateImage.com/content/img/docbuildinger/examples/coorder_aspects.pngoParagraph.AddDrawing(oDrawing)!odeptes = Api.CreatelementsoDocument.Push(oParagraph)!odeceptition-Captition-Captition-Fire-defe-odeptes = Api.CreatelementsoDocument.Push(oParagraph)!odtext (Link to)var aCaptionParagraphs = oDocument.GetAllCaptionParagraphs("Figure")!oParagraph.AddCaptionCrossRef("Figure", "entireCaption", aCaptionParagraphs[0], true, false)!builder.SaveFile("docx", "AddCaptionCrossRef.docx")!builder.CloseFile();

结果文档