Udostępnij za pośrednictwem


Document.TablesOfAuthoritiesCategories Property (2007 System)

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.v9.0 (in Microsoft.Office.Tools.Word.v9.0.dll)

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property TablesOfAuthoritiesCategories As TablesOfAuthoritiesCategories
'Usage
Dim instance As Document 
Dim value As TablesOfAuthoritiesCategories 

value = instance.TablesOfAuthoritiesCategories
[BrowsableAttribute(false)]
public TablesOfAuthoritiesCategories TablesOfAuthoritiesCategories { get; }
[BrowsableAttribute(false)]
public:
property TablesOfAuthoritiesCategories^ TablesOfAuthoritiesCategories {
    TablesOfAuthoritiesCategories^ get ();
}
public function get TablesOfAuthoritiesCategories () : TablesOfAuthoritiesCategories

Property Value

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

Examples

The following code example displays the names of all of the tables of authorities categories.

This example is for a document-level customization.

Private Sub DocumentTablesOfAuthoritiesCategories()
    Dim stringBuilder1 As New System.Text.StringBuilder()

    Dim category As Word.TableOfAuthoritiesCategory
    For Each category In Me.TablesOfAuthoritiesCategories
        stringBuilder1.Append(category.Name & ", ")
    Next category

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

    MessageBox.Show("The names of the table of authorities categories are: " _
        & stringBuilder1.ToString())
End Sub
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());
}

.NET Framework Security

See Also

Reference

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace