GetAllCaptionParagraphs

获取所有Captionlements数组 }

从当前文档返回指定类型所有标题段

参数:

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

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

返回时间 :

类型
数组

实例

拷贝代码
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-var aCaptionParagraphs = oDocument.GetAllCaptionParagraphs("Figure")!aCaptionParagraphs[0].SetCaps(true)!builder.SaveFile("docx", "GetAllCaptionParagraphs.docx")!builder.CloseFile();

结果文档