DocumentAddMergeField Method |  |
Add a merge field at selection
Namespace:
SOWIDocument.Word
Assembly:
SOWIDocument.Word (in SOWIDocument.Word.dll) Version: 22.2.10.1 (22.2.10.450)
Syntaxinternal OpenXmlElement AddMergeField(
ref OpenXmlElement pSelection,
string pMergeField,
string pStyle = "",
bool pNewParagraph = false
)
Friend Function AddMergeField (
ByRef pSelection As OpenXmlElement,
pMergeField As String,
Optional pStyle As String = "",
Optional pNewParagraph As Boolean = false
) As OpenXmlElement
Parameters
- pSelection
- Type: OpenXmlElement
Document selection to insert merge field - pMergeField
- Type: SystemString
Merge field name - pStyle (Optional)
- Type: SystemString
Style name must exist in document - pNewParagraph (Optional)
- Type: SystemBoolean
Insert a new paragraph after selection
Return Value
Type:
OpenXmlElementGives a selection or a paragraph (on parameter
pNewParagraph)
See Also