Edit

Share via


FormField Interface

Definition

Represents a single form field.

public interface class FormField
[System.Runtime.InteropServices.Guid("00020928-0000-0000-C000-000000000046")]
public interface FormField
type FormField = interface
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

Returns a Application object that represents the Microsoft Word application.

CalculateOnExit

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

CheckBox

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

Creator

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

DropDown

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

Enabled

Determines if a form field is enabled.

EntryMacro

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

ExitMacro

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

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

Returns or sets the name of the specified object.

Next

Returns the next object in the collection.

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

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

Parent

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

Previous

Returns the previous object in the collection.

Range

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

Result

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

StatusText

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

TextInput

Returns a TextInput object that represents a text form field.

Type

Returns the field type.

Methods

Copy()

Copies the specified object to the Clipboard.

Cut()

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

Delete()

Deletes the specified object.

Select()

Selects the specified object.

Applies to