Clase TablesOfAuthoritiesCategories (Word VBA)

Una colección de objetos TableOfAuthoritiesCategory que representan las categorías de tabla de autoridades, como Cases y statutes. Para usar una variable de clase TablesOfAuthoritiesCategories, primero debe ser instanciado, por ejemplo


Dim toas as TablesOfAuthoritiesCategories
Set toas = ActiveDocument.TablesOfAuthoritiesCategories

For Each

A continuación, se muestra un ejemplo de cómo procesar los elementos TablesOfAuthoritiesCategories en una colección.


Dim toaTablesOfAuthoritiesCategory As TableOfAuthoritiesCategory
For Each toaTablesOfAuthoritiesCategory In ActiveDocument.TablesOfAuthoritiesCategories
	
Next toaTablesOfAuthoritiesCategory

Count

Devuelve un Long que representa el número de categorías de la colección.


Dim lngCount As Long
lngCount = ActiveDocument.TablesOfAuthoritiesCategories.Count

Item

Devuelve un objeto TableOfAuthoritiesCategory individual de una colección.

Item (Index)

Index: El objeto individual que se va a devolver.


Dim toaTablesOfAuthoritiesCategory As TableOfAuthoritiesCategory
Set toaTablesOfAuthoritiesCategory = ActiveDocument.TablesOfAuthoritiesCategories(Index:=1)