
## FieldBuilder class

Builds a field from field code tokens (arguments and switches).
To learn more, visit the [Working with Fields](https://docs.aspose.com/words/nodejs-net/working-with-fields/) documentation article.




### Constructors
| Name | Description |
| --- | --- |
| [FieldBuilder(fieldType)](./constructor/#fieldtype) | Initializes an instance of the [FieldBuilder](./) class. |

### Methods

| Name | Description |
| --- | --- |
|[ addArgument(argument)](./addArgument/#string) | Adds a field's argument. |
|[ addArgument(argument)](./addArgument/#number) | Adds a field's argument. |
|[ addArgument(argument)](./addArgument/#number) | Adds a field's argument. |
|[ addArgument(argument)](./addArgument/#fieldbuilder) | Adds a child field represented by another [FieldBuilder](./) to the field's code. |
|[ addArgument(argument)](./addArgument/#fieldargumentbuilder) | Adds a field's argument represented by [FieldArgumentBuilder](../fieldargumentbuilder/) to the field's code. |
|[ addSwitch(switchName)](./addSwitch/#string) | Adds a field's switch. |
|[ addSwitch(switchName, switchArgument)](./addSwitch/#string_string) | Adds a field's switch. |
|[ addSwitch(switchName, switchArgument)](./addSwitch/#string_number) | Adds a field's switch. |
|[ addSwitch(switchName, switchArgument)](./addSwitch/#string_number) | Adds a field's switch. |
|[ buildAndInsert(refNode)](./buildAndInsert/#inline) | Builds and inserts a field into the document before the specified inline node. |
|[ buildAndInsert(refNode)](./buildAndInsert/#paragraph) | Builds and inserts a field into the document to the end of the specified paragraph. |

### See Also

* module [Aspose.Words.Fields](../)

