Fields Fields Fields Interface


A collection of Field objects that represent all the fields in a selection, range, or document.

public interface class Fields : System::Collections::IEnumerable
public interface Fields : System.Collections.IEnumerable
Public Interface Fields
Implements IEnumerable


Use the Fields property to return the Fields collection.

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

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 Fields property with a MailMerge object to return the MailMergeFields collection.

The Count property for this collection in a document returns the number of items in the main story only. To count items in other stories use the collection with the Range object.


Application Application Application

Returns a Application object that represents the Microsoft Word application.

Count Count Count

Returns the number of items in the specified collection.

Creator Creator Creator

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

Item[Int32] Item[Int32] Item[Int32]

Returns an individual object in a collection.

Locked Locked Locked

Determines if all fields in the Fields collection are locked.

Parent Parent Parent

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


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

Adds a Field object to the Fields collection.

GetEnumerator() GetEnumerator() GetEnumerator()
ToggleShowCodes() ToggleShowCodes() ToggleShowCodes()

Toggles the display of the fields between field codes and field results.

Unlink() Unlink() Unlink()

Replaces all the fields in the Fields collection with their most recent results.

Update() Update() Update()

Updates the result of the fields object.

UpdateSource() UpdateSource() UpdateSource()

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

Applies to