FormField FormField FormField Interface

Definition

Represents a single form field.

public interface class FormField
[System.Runtime.InteropServices.Guid("00020928-0000-0000-C000-000000000046")]
public interface FormField
Public Interface FormField
Attributes

Remarks

The FormField object is a member of the FormFields collection.

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.

Use the Add(Range, WdFieldType) method with the FormFields object to add a form field.

Use the CheckBox, DropDown, and TextInput properties with the FormField object to return the CheckBox, DropDown, and TextInput objects.

Properties

Application Application Application

Returns a Application object that represents the Microsoft Word application.

CalculateOnExit CalculateOnExit CalculateOnExit

Determines if references to the specified form field are automatically updated whenever the field is exited.

CheckBox CheckBox CheckBox

Returns a CheckBox object that represents a check box form field.

Creator Creator Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

DropDown DropDown DropDown

Returns a DropDown object that represents a drop-down form field.

Enabled Enabled Enabled

Determines if a form field is enabled.

EntryMacro EntryMacro EntryMacro

Returns or sets an entry macro name for the specified form field (CheckBox, DropDown, or TextInput).

ExitMacro ExitMacro ExitMacro

Returns or sets an exit macro name for the specified form field (CheckBox, DropDown, or TextInput).

HelpText HelpText HelpText

Returns or sets the text that's displayed in a message box when the form field has the focus and the user presses F1.

Name Name Name

Returns or sets the name of the specified object.

Next Next Next

Returns the next object in the collection.

OwnHelp OwnHelp OwnHelp

Specifies the source of the text that's displayed in a message box when a form field has the focus and the user presses F1.

OwnStatus OwnStatus OwnStatus

Specifies the source of the text that's displayed in the status bar when a form field has the focus.

Parent Parent Parent

Returns an object that represents the parent object of the specified object.

Previous Previous Previous

Returns the previous object in the collection.

Range Range Range

Returns a Range object that represents the portion of a document that's contained in the specified object.

Result Result Result

Returns a Range object that represents the portion of a document that's contained in the specified object.

StatusText StatusText StatusText

Returns or sets the text that's displayed in the status bar when a form field has the focus.

TextInput TextInput TextInput

Returns a TextInput object that represents a text form field.

Type Type Type

Returns the field type.

Methods

Copy() Copy() Copy()

Copies the specified object to the Clipboard.

Cut() Cut() Cut()

Removes the specified object from the document and places it on the Clipboard.

Delete() Delete() Delete()

Deletes the specified object.

Select() Select() Select()

Selects the specified object.

Applies to