Düzenle

Aracılığıyla paylaş


Fields Interface

Definition

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

public interface class Fields : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020930-0000-0000-C000-000000000046")]
public interface Fields : System.Collections.IEnumerable
type Fields = interface
    interface IEnumerable
Public Interface Fields
Implements IEnumerable
Attributes
Implements

Remarks

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.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Count

Returns the number of items in the specified collection.

Creator

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

Item[Int32]

Returns an individual object in a collection.

Locked

Determines if all fields in the Fields collection are locked.

Parent

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

Methods

Add(Range, Object, Object, Object)

Adds a Field object to the Fields collection.

GetEnumerator()
ToggleShowCodes()

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

Unlink()

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

Update()

Updates the result of the fields object.

UpdateSource()

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

Applies to