Indexes.MarkEntry Method

Inserts an XE (Index Entry) field after the specified range. Returns a Field object representing the XE 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 CrossReference As Object, _
    ByRef CrossReferenceAutoText As Object, _
    ByRef BookmarkName As Object, _
    ByRef Bold As Object, _
    ByRef Italic As Object, _
    ByRef Reading As Object _
) As Field
'Usage
Dim instance As Indexes
Dim Range As Range
Dim Entry As Object
Dim EntryAutoText As Object
Dim CrossReference As Object
Dim CrossReferenceAutoText As Object
Dim BookmarkName As Object
Dim Bold As Object
Dim Italic As Object
Dim Reading As Object
Dim returnValue As Field

returnValue = instance.MarkEntry(Range, _
    Entry, EntryAutoText, CrossReference, _
    CrossReferenceAutoText, BookmarkName, _
    Bold, Italic, Reading)
Field MarkEntry(
    Range Range,
    ref Object Entry,
    ref Object EntryAutoText,
    ref Object CrossReference,
    ref Object CrossReferenceAutoText,
    ref Object BookmarkName,
    ref Object Bold,
    ref Object Italic,
    ref Object Reading
)

Parameters

  • Entry
    Type: System.Object%
    Optional Object. The text that appears in the index. 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).
  • CrossReference
    Type: System.Object%
    Optional Object. A cross-reference that will appear in the index (for example, "See Apples").
  • CrossReferenceAutoText
    Type: System.Object%
    Optional Object. The AutoText entry name that contains the text for a cross-reference (CrossReference is ignored).
  • BookmarkName
    Type: System.Object%
    Optional Object. The name of the bookmark that marks the range of pages you want to appear in the index. If this argument is omitted, the number of the page containing the XE field appears in the index.
  • Bold
    Type: System.Object%
    Optional Object. True to add bold formatting to the entry page numbers in the index.
  • Italic
    Type: System.Object%
    Optional Object. True to add italic formatting to the entry page numbers in the index.
  • Reading
    Type: System.Object%
    Optional Object. True shows an index entry in the right location when indexes are sorted phonetically (East Asian languages only).

Return Value

Type: Microsoft.Office.Interop.Word.Field

See Also

Reference

Indexes Interface

Indexes Members

Microsoft.Office.Interop.Word Namespace