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)

Syntax

'Declaration
Public ReadOnly Property TablesOfAuthorities As TablesOfAuthorities
    Get
public TablesOfAuthorities TablesOfAuthorities { get; }

Property Value

Type: Microsoft.Office.Interop.Word.TablesOfAuthorities
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 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 Security

See Also

Reference

DocumentBase Class

Microsoft.Office.Tools.Word Namespace