Поделиться через


Document.TablesOfAuthoritiesCategories Свойство (2007 System)

Обновлен: Ноябрь 2007

Возвращает коллекцию TablesOfAuthoritiesCategories, в которой хранятся доступные категории таблицы полномочий для документа.

Пространство имен:  Microsoft.Office.Tools.Word
Сборка:  Microsoft.Office.Tools.Word.v9.0 (в Microsoft.Office.Tools.Word.v9.0.dll)

Синтаксис

'Декларация
<BrowsableAttribute(False)> _
Public ReadOnly Property TablesOfAuthoritiesCategories As TablesOfAuthoritiesCategories
'Применение
Dim instance As Document
Dim value As TablesOfAuthoritiesCategories

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

Значение свойства

Тип: Microsoft.Office.Interop.Word.TablesOfAuthoritiesCategories
Коллекция TablesOfAuthoritiesCategories, в которой хранятся доступные категории таблицы полномочий для документа.

Примеры

В приведенном ниже примере кода отображаются имена всех категорий таблиц полномочий.

В этом примере демонстрируется настройка уровня документа.

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

Разрешения

См. также

Ссылки

Document Класс

Document - члены

Microsoft.Office.Tools.Word - пространство имен