Sdílet prostřednictvím


DocumentBase.TablesOfAuthoritiesCategories – vlastnost

Získá TablesOfAuthoritiesCategories kolekce, která představuje tabulku k dispozici orgány kategorie dokumentu.

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
public TablesOfAuthoritiesCategories TablesOfAuthoritiesCategories { get; }

Hodnota vlastnosti

Typ: Microsoft.Office.Interop.Word.TablesOfAuthoritiesCategories
A TablesOfAuthoritiesCategories kolekce, která představuje tabulku k dispozici orgány kategorie dokumentu.

Příklady

Následující příklad kódu zobrazuje názvy všech tabulek Kategorie orgány.Chcete-li tento příklad použít, spusťte jej ze třídy ThisDocument v projektu na ú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é

Referenční dokumentace

DocumentBase Třída

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