Fields Interface
A collection of Field objects that represent all the fields in a selection, range, or document.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
<GuidAttribute("00020930-0000-0000-C000-000000000046")> _
Public Interface Fields _
Inherits IEnumerable
'Usage
Dim instance As Fields
[GuidAttribute("00020930-0000-0000-C000-000000000046")]
public interface Fields : IEnumerable
Remarks
Use the Fields property to return the Fields collection.
Use the Add 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.