Field Interface

Definition

Represents a field. The Field object is a member of the Fields collection. The Fields collection represents the fields in a selection, range, or document.

public interface class Field
[System.Runtime.InteropServices.Guid("0002092F-0000-0000-C000-000000000046")]
public interface Field
type Field = interface
Public Interface Field
Attributes

Remarks

Use Fields(index), where index is the index number, to return a single Field object. The index number represents the position of the field in the selection, range, or document.

Use the Add(Range, Object, Object, Object) method to add a field to the Fields collection.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Code

Returns a Range object that represents a field's code.

Creator

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

Data

Returns or sets data in an ADDIN field.

Index

Returns an Integer that represents the position of an item in a collection.

InlineShape

Returns a InlineShape object that represents the picture, OLE object, or ActiveX control that is the result of an INCLUDEPICTURE or EMBED field.

Kind

Returns the type of link for a Field object.

LinkFormat

Returns a LinkFormat object that represents the link options of the specified field, inline shape, or shape that's linked to a file.

Locked

Determines if the specified field is locked.

Next

Returns the next object in the collection.

OLEFormat

Returns a OLEFormat object that represents the OLE characteristics (other than linking) for the specified field.

Parent

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

Previous

Returns the previous object in the collection.

Result

Returns a Range object that represents a field's result.

ShowCodes

Determines if field codes are displayed for the specified field instead of field results.

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.

DoClick()

Clicks the specified field.

Select()

Selects the specified object.

Unlink()

Replaces the specified field with its most recent result.

Update()

Updates the result of the field object.

UpdateSource()

Saves the changes made to the results of an INCLUDETEXT field back to the source document.

Applies to