TablesOfFigures.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)
Usage
Dim Range As Range
Dim Entry As Object
Dim EntryAutoText As Object
Dim TableID As Object
Dim Level As Object
Dim returnValue As Field
Dim tablesOfFigures1 As TablesOfFigures
returnValue = tablesOfFigures1.MarkEntry(Range, Entry, EntryAutoText, TableID, Level)
Syntax
Function MarkEntry( _
<InAttribute()> ByVal Range As Range, _
<InAttribute()> Optional ByRef Entry As Object, _
<InAttribute()> Optional ByRef EntryAutoText As Object, _
<InAttribute()> Optional ByRef TableID As Object, _
<InAttribute()> Optional ByRef Level As Object _
) As Field
Field MarkEntry(
[In] Range Range,
[In, Optional] ref object Entry,
[In, Optional] ref object EntryAutoText,
[In, Optional] ref object TableID,
[In, Optional] ref object Level
);
public: Field^ MarkEntry(
Range^ Range,
&Object^ Entry,
&Object^ EntryAutoText,
&Object^ TableID,
&Object^ Level
);
public Field MarkEntry(
/*in*/Range Range,
/*in*/System.Object Entry,
/*in*/System.Object EntryAutoText,
/*in*/System.Object TableID,
/*in*/System.Object Level
);
function MarkEntry(
Range : Range,
Entry : Object,
EntryAutoText : Object,
TableID : Object,
Level : Object
) : Field;
Parameters
- Range
Required Range object. The location of the entry. The TC field is inserted after Range.
- Entry
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
Optional Object. The AutoText entry name that includes text for the index, table of figures, or table of contents (Entry is ignored).
- TableID
Optional Object. A one-letter identifier for the table of figures or table of contents item (for example, "i" for an "illustration").
- Level
Optional Object. A level for the entry in the table of contents or table of figures.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
TablesOfFigures Interface
Microsoft.Office.Interop.Word Namespace