TablesOfContents.MarkEntry Method
Inserts a TC (Table of Contents Entry) field after the specified range. The method returns a Field object representing the TC field.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function MarkEntry ( _
Range As Range, _
ByRef Entry As Object, _
ByRef EntryAutoText As Object, _
ByRef TableID As Object, _
ByRef Level As Object _
) As Field
'Usage
Dim instance As TablesOfContents
Dim Range As Range
Dim Entry As Object
Dim EntryAutoText As Object
Dim TableID As Object
Dim Level As Object
Dim returnValue As Field
returnValue = instance.MarkEntry(Range, _
Entry, EntryAutoText, TableID, Level)
Field MarkEntry(
Range Range,
ref Object Entry,
ref Object EntryAutoText,
ref Object TableID,
ref Object Level
)
Parameters
- Range
Type: Microsoft.Office.Interop.Word.Range
Required Range object. The location of the entry. The TC field is inserted after Range.
- Entry
Type: System.Object%
Optional Object. The text that appears in the table of contents or table of figures. To indicate a subentry, include the main entry text and the subentry text, separated by a colon (:) (for example, "Introduction:The Product").
- EntryAutoText
Type: System.Object%
Optional Object. The AutoText entry name that includes text for the index, table of figures, or table of contents (Entry is ignored).
- TableID
Type: System.Object%
Optional Object. A one-letter identifier for the table of figures or table of contents item (for example, "i" for an "illustration").
- Level
Type: System.Object%
Optional Object. A level for the entry in the table of contents or table of figures.
Return Value
Type: Microsoft.Office.Interop.Word.Field