insertField method
Contents
[
Hide
]insertField(fieldType, updateField, refNode, isAfter)
Inserts a field into this paragraph.
insertField(fieldType: Aspose.Words.Fields.FieldType, updateField: boolean, refNode: Aspose.Words.Node, isAfter: boolean)
Parameter | Type | Description |
---|---|---|
fieldType | FieldType | The type of the field to insert. |
updateField | boolean | Specifies whether to update the field immediately. |
refNode | Node | Reference node inside this paragraph (if refNode isnull , then appends to the end of the paragraph). |
isAfter | boolean | Whether to insert the field after or before reference node. |
Returns
A Field object that represents the inserted field.
insertField(fieldCode, refNode, isAfter)
Inserts a field into this paragraph.
insertField(fieldCode: string, refNode: Aspose.Words.Node, isAfter: boolean)
Parameter | Type | Description |
---|---|---|
fieldCode | string | The field code to insert (without curly braces). |
refNode | Node | Reference node inside this paragraph (if refNode isnull , then appends to the end of the paragraph). |
isAfter | boolean | Whether to insert the field after or before reference node. |
Returns
A Field object that represents the inserted field.
insertField(fieldCode, fieldValue, refNode, isAfter)
Inserts a field into this paragraph.
insertField(fieldCode: string, fieldValue: string, refNode: Aspose.Words.Node, isAfter: boolean)
Parameter | Type | Description |
---|---|---|
fieldCode | string | The field code to insert (without curly braces). |
fieldValue | string | The field value to insert. Pass null for fields that do not have a value. |
refNode | Node | Reference node inside this paragraph (if refNode isnull , then appends to the end of the paragraph). |
isAfter | boolean | Whether to insert the field after or before reference node. |
Returns
A Field object that represents the inserted field.
See Also
- module Aspose.Words
- class Paragraph