GetAllHeadingParagraphs

GetAllheadingleps()+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++数组 }

从当前文档返回所有标题段

参数:

这种方法没有任何参数

返回时间 :

类型
数组

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvaroNewDocumentStyle=odocument.getstylevarolements=ODocument.GetEplement0oParagraph.SetStyle(oNewDocumentStyle)!oParagraph.AddText("Heading 1")!var aHeadingParagraphs = oDocument.GetAllHeadingParagraphs()!aHeadingParagraphs[0].SetCaps(true)!builder.SaveFile("docx", "GetAllHeadingParagraphs.docx")!builder.CloseFile();

结果文档