Share via


Document.TablesOfAuthorities Property (2007 System)

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

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

Syntax

'Declaration
<BrowsableAttribute(False)> _
Public ReadOnly Property TablesOfAuthorities As TablesOfAuthorities
'Usage
Dim instance As Document 
Dim value As TablesOfAuthorities 

value = instance.TablesOfAuthorities
[BrowsableAttribute(false)]
public TablesOfAuthorities TablesOfAuthorities { get; }
[BrowsableAttribute(false)]
public:
property TablesOfAuthorities^ TablesOfAuthorities {
    TablesOfAuthorities^ get ();
}
public function get TablesOfAuthorities () : TablesOfAuthorities

Property Value

Type: 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.

This example is for a document-level customization.

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

Document Class

Document Members

Microsoft.Office.Tools.Word Namespace