Sdílet prostřednictvím


DocumentBase.TablesOfAuthoritiesCategories – vlastnost

Získává TablesOfAuthoritiesCategories kolekce představuje dostupné tabulky orgány kategorie pro dokument.

Obor názvů:  Microsoft.Office.Tools.Word
Sestavení:  Microsoft.Office.Tools.Word.v4.0.Utilities (v Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

Syntaxe

'Deklarace
Public ReadOnly Property TablesOfAuthoritiesCategories As TablesOfAuthoritiesCategories
    Get
public TablesOfAuthoritiesCategories TablesOfAuthoritiesCategories { get; }

Hodnota vlastnosti

Typ: Microsoft.Office.Interop.Word.TablesOfAuthoritiesCategories
A TablesOfAuthoritiesCategories kolekce představuje dostupné tabulky orgány kategorie pro dokument.

Příklady

Následující příklad kódu zobrazí názvy všech tabulek Kategorie orgány. Chcete-li použít tento příklad spustit z ThisDocument třídy v projektu úrovni dokumentu.

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());
}

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

DocumentBase Třída

Microsoft.Office.Tools.Word – obor názvů