TablesOfContents.Format 属性 (Word) 项目 2023/04/07 6 个参与者 反馈 本文内容 语法 示例 另请参阅 返回或设置指定文档中目录的格式。 读/写 WdTocFormat。语法表达式。格式expression 是必需的。 一个代表“TablesOfContents”集合的变量。示例
程序集: Microsoft.Office.Interop.Word.dll 返回或设置指定文档中目录的格式。 C# 复制 public Microsoft.Office.Interop.Word.WdTocFormat Format { get; set; } 属性值 WdTocFormat 注解 WdTocFormat 可以是以下 WdTocFormat 常量之一。 wdTOCDistinctive wdTOCFormal wdTOCSimple wdTOCClassic wdT...
Word 文件 Word 2021、Word 2019、Word 2016、Word 2013、Word 2010 和 Office Word 2007 的預設 XML 檔格式。 .docx Strict Open XML 文件 符合Strict profile of the Open XML 標準 (ISO/IEC 29500)。此 Open XML 的設定檔不允許特別針對回溯相容性與現有二進位文件設計的功能集,如 ISO/IEC 29500 的第 ...
There are also many ways to customize a table of contents. To adjust the font and size, highlight the text as you normally would in a Word document, then go to theHometab to select a font, size, color, or other text format. To access advanced font customization options, select theMore...
While it is possible to create a table of contents manually, this method is time-consuming and less efficient compared to the automatic method. Luckily, inserting a ToC into your Word document is a simple affair! Format Beautiful Professional Books ...
To be able to have the text in the table of contents, you should give a style to this text. At the time of the creation or of the update of the table of contents, Word fetches the text that has a style of type " Title 1 ", " Title 2 " or " Title 3 " to insert it then...
Repeat steps 1 through 7 of this procedure for each table of contents entry in your document. Method 2: How to use the keyboard Select the word or words that you want to include as a table of contents entry. Press ALT+SHIFT+O.
使用Fill 屬性可傳回 FillFormat 物件。 下列範例會將矩形新增至使用中文件,然後設定該矩形填滿色彩及漸層。 VB 複製 With ActiveDocument.Shapes _ .AddShape(msoShapeRectangle, 90, 90, 90, 80).Fill .ForeColor.RGB = RGB(0, 128, 128) .OneColorGradient msoGradientHorizontal, 1, 1 End With 許多...
If you don't like the way the heading styles look (eg, you want a different font or font size or colour), don't format the text directly. Instead,modify the heading styles. Create the Table of Contents Word 2003 and earlier versions ...
7. Place a simple border around the Table of Contents You can use Word’s Shapes feature to insert a border around the TOC. Set Shape Fill to “No Fill” and then add Shape Styles or use Format Shape to design the look of the pseudo-border around the table. Remember to add Table of...