Indexes.MarkAllEntries Method
Inserts an XE (Index Entry) field after all instances of the text in Range.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Sub MarkAllEntries ( _
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 _
)
'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
instance.MarkAllEntries(Range, Entry, _
EntryAutoText, CrossReference, CrossReferenceAutoText, _
BookmarkName, Bold, Italic)
void MarkAllEntries(
Range Range,
ref Object Entry,
ref Object EntryAutoText,
ref Object CrossReference,
ref Object CrossReferenceAutoText,
ref Object BookmarkName,
ref Object Bold,
ref Object Italic
)
Parameters
- Range
Type: Microsoft.Office.Interop.Word.Range
Required Range object. The range whose text is marked with an XE field throughout the document.
- Entry
Type: System.Object%
Optional Object. The text you want to appear in the index, in the form MainEntry[:Subentry].
- EntryAutoText
Type: System.Object%
Optional Object. The AutoText entry that contains the text you want to appear in the index (if this argument is specified, Entry is ignored).
- CrossReference
Type: System.Object%
Optional Object. A cross-reference that will appear in the index.
- CrossReferenceAutoText
Type: System.Object%
Optional Object. The name of the AutoText entry that contains the text for a cross-reference (if this argument is specified, CrossReference is ignored).
- BookmarkName
Type: System.Object%
Optional Object. The bookmark name that marks the range of pages you want to appear in the index. If this argument is omitted, the number of the page that contains the XE field appears in the index.
- Bold
Type: System.Object%
Optional Object. True to add bold formatting to page numbers for index entries.
- Italic
Type: System.Object%
Optional Object. True to add italic formatting to page numbers for index entries.