...
Description |
---|
Excerpt |
---|
This class is a low level representation of a field. This encompasses many objects in Word, such as merge fields, hyperlinks, TOC entries, etc. Fields are the generic form of what are contained in a Element's inline elements. |
Signature | ||||
---|---|---|---|---|
| ||||
public class Field : Element
{signature}{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Class Field
Inherits Element
{signature}
{remarks}To create a field, call the corresponding |
Remarks |
---|
To create a field, call the corresponding "insert" method for what you want to create \(hyperlink, TOC entry, etc \) on an [|Element]or [|Position]object. To get an existing field, use the [|Element.GetElements(Element.Type)]method and pass in the [|Element.Type#Field]parameter to retrieve all fields. The following sample demonstrates creating a field at the end of a new document and retrieving the first field of an existing document. {remarks} {example}{code:csharp|title=C#} |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Properties |
---|
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
| |||||||||
| |||||||||
|
Methods |
---|
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
|
Classes |
---|
Name | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|
|