مشاركة عبر


DocumentBase.TablesOfAuthoritiesCategories الخاصية

تحصل على TablesOfAuthoritiesCategoriesمجموعة الذي يمثل الجدول متوفر من فئات المصادر مستند.

مساحة الاسم:  Microsoft.Office.Tools.Word
التجميع:  Microsoft.Office.Tools.Word.v4.0.Utilities (في Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

بناء الجملة

'إقرار
Public ReadOnly Property TablesOfAuthoritiesCategories As TablesOfAuthoritiesCategories
    Get
public TablesOfAuthoritiesCategories TablesOfAuthoritiesCategories { get; }

قيمة الخاصية

النوع: Microsoft.Office.Interop.Word.TablesOfAuthoritiesCategories
TablesOfAuthoritiesCategoriesالذي يمثل الجدول متوفر من فئات المصادر لمجموعة مستند.

أمثلة

مثال التعليمة البرمجية التالية يعرض أسماء الجميع الجداول من فئات المصادر. إلى لاستخدام هذا المثال، قم بتشغيلها من ThisDocumentالفئة في مشروع المستوى مستند.

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.

راجع أيضًَا

المرجع

DocumentBase الفئة

DocumentBase الأعضاء

Microsoft.Office.Tools.Word مساحة الاسم