DocumentBase.TablesOfAuthorities Property

 

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

Namespace:   Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public TablesOfAuthorities TablesOfAuthorities { get; }

Property Value

Type: Microsoft.Office.Interop.Word.TablesOfAuthorities

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

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);
}
Return to top
Show: