Compartir a través de


DocumentBase.TablesOfAuthorities Property

Definition

Gets a TablesOfAuthorities collection that represents the tables of authorities in the document.

public:
 property Microsoft::Office::Interop::Word::TablesOfAuthorities ^ TablesOfAuthorities { Microsoft::Office::Interop::Word::TablesOfAuthorities ^ get(); };
public Microsoft.Office.Interop.Word.TablesOfAuthorities TablesOfAuthorities { get; }
member this.TablesOfAuthorities : Microsoft.Office.Interop.Word.TablesOfAuthorities
Public ReadOnly Property TablesOfAuthorities As TablesOfAuthorities

Property Value

A TablesOfAuthorities collection that represents the tables of authorities in the document.

Examples

The following code example adds a table of authorities that compiles references from all categories at the beginning of the document. To use this example, run it from the ThisDocument class in a document-level project.

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

Applies to