TableOfAuthoritiesCategory 对象

         
Documents (Document)
TablesOfAuthoritiesCategories (TablesOfAuthoritiesCatagory)

代表一个引文目录分类。TableOfAuthoritiesCategories 对象是 TablesOfAuthoritiesCategories 集合的成员之一,TablesOfAuthoritiesCategories 集合中包括了“引文目录”选项卡(位于“插入”菜单的“索引和目录”对话框)的“类别”框中全部 16 个类别。

使用 TableOfAuthoritiesCategory 对象

TablesOfAuthoritiesCategories(index) 可返回一个 TableOfAuthoritiesCategory 对象(其中 index 为类别名称或索引编号)。下例将类别“Rules”重新命名为“Other Provisions”。

ActiveDocument.TablesOfAuthoritiesCategories("Rules").Name = _
    "Other Provisions"

索引编号代表“插入”菜单的“索引和目录”对话框中类别的位置。下例用于显示 TablesOfAuthoritiesCategories 集合中的第一个类别名称。

MsgBox ActiveDocument.TablesOfAuthoritiesCategories(1).Name

Add 方法不适用于 TablesOfAuthoritiesCategories 集合。集合中最多只能包括 16 个类别,但是可以用 Name 属性为一个现有的类别重新命名。