How to create table of contents entry (TC) fields There are two ways to mark table of contents items: Create a custom menu command or use the keyboard. Method 1: How to create a custom menu command Part A: To add theMarkTableofContentsEntrymenu comman...
The TOC (Table of Contents) field builds a table of contents. The TOC field collects entries for a table of contents using heading styles, other specified styles, outline levels, captions, or entries specified byTC (Table of Contents Entry) fields. Word inserts the TOC field when, you click...
Specify the details for the table of contents structure in Microsoft Word: Enable field codes in Microsoft Word. Place your cursor in the editor. Insert a table of contents. In the Table of contents window, customize the ...
How to create a table of contents and index with field codes in Word The following example shows table of contents entries that contain no page numbers. You can use the following method to prevent table of contents entries from having the same page number. ...
{"__typename":"Tag","id":"tag:Modified Word Table Of Contents","text":"Modified Word Table Of Contents","time":"2022-04-08T18:05:07.473-07:00","lastActivityTime":null,"messagesCount":null,"followersCount":null}},{"__typename":"TagEdge","cursor":"MjQuMTF8Mi4xfG98MTB8X05WX3wy...
如果Microsoft Word 打印域代码而不打印域的结果,则该属性值为 True。读/写 Boolean。语法expression。 PrintFieldCodes表达 返回Options 对象的表达式。示例本示例将 Word 设置为打印域代码,然后打印活动文档。VB 复制 Options.PrintFieldCodes = True ActiveDocument.PrintOut ...
expression。 ShowCodes表达 返回“Field”对象的表达式。示例本示例选定下一个域,并显示其域代码。VB 复制 With Selection .GoTo What:=wdGoToField .Expand Unit:=wdWord If .Fields.Count = 1 Then .Fields(1).ShowCodes = True End With 本示例更新并显示活动文档中第一个域的结果。VB 复制 ...
IncludeFieldCodes表达 返回“TextRetrievalMode”对象的表达式。备注默认值与“选项”对话框(“工具”菜单)中“视图”选项卡上的“域代码”选项的设置相同,直到该属性已设置。与Range 对象一起使用 Text 属性检索指定区域中的文本。示例本示例显示一个消息框中的活动文档中第一个段落的文本。 示例使用 IncludeField...
程序集: Microsoft.Office.Interop.Word.dll 如此 如果从指定区域获取的文本包含域代码。 C# 复制 public bool IncludeFieldCodes { get; set; } 属性值 Boolean 注解 注意 在设置此属性之前,默认值与“选项”对话框中“视图”选项卡上的“字段代码”选项的设置相同, (“工具”菜单) 。 Text将...
In your document, click within the first major heading that you want to appear in the Table of Contents. Apply the Heading 1 style to that paragraph. The easiest way to apply the Heading 1 style is: in Word 2003 and earlier: click theStylebox on the Formatting toolbar and choose Heading...