TablesOfContents.Add 方法 (Word) 返回一 个 TableOfContents 对象,该对象代表添加到文档中的目录。 语法 表达式.Add (Range, UseHeadingStyles, UpperHeadingLevel, LowerHeadingLevel, UseFields, TableID, RightAlignPageNumbers, IncludePageNumbers, AddedStyles, UseHyperlinks, HidePageNumbersInWeb, UseOutlineLeve...
Whatever document be it, if it doesn’t have aTable of ContentsSection, it sure is going to be difficult to navigate through it. What makes Microsoft Word very special is its simplicity, and its ability to make the users’ jobs much easier. That being said, Microsoft Word sure has an i...
On the one hand, the heading styles greatly simplify my work and present my document in a structured fashion. On the other hand, when I insert a table of contents, Word automatically searches for those headings and displays a table of contents based on the text that I marked with each sty...
C# .NET Core, Java, Python, C++, Android, PHP, Node.js APIs to create, process and convert PDF, Word, Excel, PowerPoint, email, image, ZIP, and several other formats in Windows, Linux, MacOS & Android.
1. To create a table of contents,you need toplace your cursor where you want to add the table of contents.Next, go to References and then to Table of Contents. 2. You can choose an automatic style, then the table of contents will appear in the document.If you make changes to the ...
TableOfContents 物件是 TablesOfContents 成員 集合。 TablesOfContents 集合包含文件中的內容的所有資料表。 註解 使用TablesOfContents (Index),其中 Index 是索引編號,可以傳回單一的 TableOfContents 物件。 索引編號代表文件中的目錄位置。 下列範例會更新頁碼的作用中的文件中圖表的第一個表格中的項目。 VB 複製 ...
public class AddTOC { public static void main(String[] args) throws IOException, InvalidFormatException { FileInputStream fileInputStream = new FileInputStream("xxxx"); XWPFDocument doc = new XWPFDocument(fileInputStream); generateTOC(doc); ...
How a table of contents works in Word When you want to begin a new section in a Word document, highlight the section title, then click the “Home” tab, navigate to the “Styles” section, and select “Heading 1.” This will indicate that the highlighted section is the name (and begi...
// The newly inserted table of contents will be initially empty. // It needs to be populated by updating the fields in the document. doc->UpdateFields(); // Output file path System::String outputPath = outputDataDir + u"AddTOC.docx"; ...
Insert your table of contents into any document, and adjust it to suit your needs. Add text above and/or below the table of contents as required (for example, add a heading "Table of Contents", preferably formatted with the built-in TOC Heading style). ...