Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.