WrapInMailMergeField
Wraps the paragraph content in a mail merge field.
Syntax
expression.WrapInMailMergeField();
expression
- A variable that represents a ApiParagraph class.
Parameters
This method doesn't have any parameters.
Returns
This method doesn't return any data.
Example
This example wraps the paragraph content in a mail merge field.
let doc = Api.GetDocument();
let paragraph = doc.GetElement(0);
paragraph.AddText("Paragraph wrapped in 'Mail Merge Field'");
paragraph.WrapInMailMergeField();