DocumentBase.TablesOfAuthoritiesCategories Property

 

Gets a TablesOfAuthoritiesCategories collection that represents the available table of authorities categories for the document.

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public TablesOfAuthoritiesCategories TablesOfAuthoritiesCategories { get; }

Property Value

Type: Microsoft.Office.Interop.Word.TablesOfAuthoritiesCategories

A TablesOfAuthoritiesCategories collection that represents the available table of authorities categories for the document.

The following code example displays the names of all of the tables of authorities categories. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentTablesOfAuthoritiesCategories()
{
    System.Text.StringBuilder stringBuilder1 =
        new System.Text.StringBuilder();

    foreach (Word.TableOfAuthoritiesCategory category in
        this.TablesOfAuthoritiesCategories)
    {
        stringBuilder1.Append(category.Name + ", ");
    }

    stringBuilder1.Remove(stringBuilder1.Length - 2, 2);
    stringBuilder1.Append(".");

    MessageBox.Show("The names of the table of " +
        "authorities categories are: " +
        stringBuilder1.ToString());
}
Return to top
Show: