(0) exportieren Drucken
Alle erweitern

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)

'Usage
Public Class ieldsImplementation
	Implements Fields
End Class
Dim ieldsImplementation1 As New ieldsImplementation()

'Declaration
Public Interface Fields
	Inherits IEnumerable
public interface Fields implements IEnumerable
public interface Fields implements IEnumerable

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.


Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Anzeigen:
© 2014 Microsoft