Indexes 接口

定义

对象的集合 Index ,该集合代表指定文档中的所有索引。A collection of Index objects that represents all the indexes in the specified document.

public interface class Indexes : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("0002097C-0000-0000-C000-000000000046")]
public interface Indexes : System.Collections.IEnumerable
type Indexes = interface
    interface IEnumerable
Public Interface Indexes
Implements IEnumerable
属性
实现

注解

使用 Indexes 属性返回索引集合。Use the Indexes property to return the Indexes collection.

使用 Add(Range, Object, Object, Object, Object, Object, Object, Object) 方法可创建索引并将其添加到索引集合中。Use the Add(Range, Object, Object, Object, Object, Object, Object, Object) method to create an index and add it to the Indexes collection.

使用索引index ),其中 index 是索引号,返回单个index对象。Use Indexes(index), where index is the index number, to return a single Index object. 索引号代表文档中的 索引 对象的位置。The index number represents the position of the Index object in the document.

属性

Application

返回一个 Application 代表 Microsoft Word 应用程序的对象。Returns a Application object that represents the Microsoft Word application.

Count

返回指定集合中的项目数。Returns the number of items in the specified collection.

Creator

返回一个 32 位整数,它指示在其中创建指定的对象的应用程序。Returns a 32-bit integer that indicates the application in which the specified object was created.

Format

返回或设置指定文档中的索引的格式。Returns or sets the formatting for the indexes in the specified document.

Item[Int32]

返回集合中的单个对象。Returns an individual object in a collection.

Parent

返回一个对象,代表指定对象的父对象。Returns an object that represents the parent object of the specified object.

方法

Add(Range, Object, Object, Object, Object, Object, Object, Object)

返回一个 Index 对象,表示添加到文档中的新索引。Returns a Index object that represents a new index added to a document.

AddOld(Range, Object, Object, Object, Object, Object)

仅供内部使用。Reserved for internal use.

AutoMarkEntries(String)

用对应文件中的索引项将 XE(索引项)域自动添至指定文档。Automatically adds XE (Index Entry) fields to the specified document, using the entries from a concordance file.

GetEnumerator()
MarkAllEntries(Range, Object, Object, Object, Object, Object, Object, Object)

在中的文本的所有实例后插入一个 XE (索引项)域 RangeInserts an XE (Index Entry) field after all instances of the text in Range.

MarkEntry(Range, Object, Object, Object, Object, Object, Object, Object, Object)

在指定范围后插入一个 XE(索引项)域。Inserts an XE (Index Entry) field after the specified range. 返回一个 Field 表示 XE 域的对象。Returns a Field object representing the XE field.

适用于