DocumentBase.TablesOfAuthorities 属性

获取一个 TablesOfAuthorities 集合,该集合表示文档中颁发机构的表。

命名空间:  Microsoft.Office.Tools.Word
程序集:  Microsoft.Office.Tools.Word.v4.0.Utilities(在 Microsoft.Office.Tools.Word.v4.0.Utilities.dll 中)

语法

声明
Public ReadOnly Property TablesOfAuthorities As TablesOfAuthorities
public TablesOfAuthorities TablesOfAuthorities { get; }

属性值

类型:Microsoft.Office.Interop.Word.TablesOfAuthorities
一个 TablesOfAuthorities 集合,表示文档中颁发机构的表。

示例

下面的代码示例在该文档的开头添加一个对所有类别的引用进行编译的颁发机构的表。 若要使用此示例,请从文档级项目内的 ThisDocument 类中运行此示例。

Private Sub DocumentTablesOfAuthorities()
    Me.Paragraphs(1).Range.InsertParagraphAfter()
    Dim StartPosition As Object = 0
    Dim EndPosition As Object = 0
    Dim range1 As Word.Range = Me.Range(StartPosition, EndPosition)

    Dim Passim As Object = True
    Dim Category As Object = 0
    Dim EntrySeparator As Object = ", "
    Me.TablesOfAuthorities.Add(range1, Category, , Passim, , EntrySeparator)

End Sub 
private void DocumentTablesOfAuthorities()
{
    this.Paragraphs[1].Range.InsertParagraphAfter();
    object Start = 0;
    object End = 0;
    Word.Range range1 = this.Range(ref Start, ref End);

    object Passim = true;
    object Category = 0;
    object EntrySeparator = ", ";
    this.TablesOfAuthorities.Add(range1, ref Category, ref missing,
        ref Passim, ref missing, ref EntrySeparator, ref missing,
        ref missing, ref missing, ref missing, ref missing);
}

.NET Framework 安全性

请参见

参考

DocumentBase 类

Microsoft.Office.Tools.Word 命名空间