FormFields 接口

定义

对象的集合, FormField 这些对象代表所选内容、范围或文档中的所有窗体域。A collection of FormField objects that represent all the form fields in a selection, range, or document.

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

注解

使用 窗体域 属性可返回 窗体域 的集合。Use the FormFields property to return the FormFields collection.

Add(Range, WdFieldType) 方法与FormFields对象一起使用可添加窗体域。Use the Add(Range, WdFieldType) method with the FormFields object to add a form field.

使用FormFieldsindex ),其中 index 是书签名称或索引号,返回单个FormField对象。Use FormFields(index), where index is a bookmark name or index number, to return a single FormField object.

索引号代表窗体域在所选内容、范围或文档中的位置。The index number represents the position of the form field in the selection, range, or 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.

Item[Object]

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

Parent

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

Shaded

确定是否对窗体域应用底纹。Determines if shading is applied to form fields.

方法

Add(Range, WdFieldType)

返回一个 FormField 对象,表示在某一区域添加的新窗体域。Returns a FormField object that represents a new form field added at a range.

GetEnumerator()

适用于