MergeFields Property
- Namespace
TXTextControl.DocumentServer. DataSources
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
Returns the merge fields inside this merge block excluding fields in possible nested merge blocks.
Syntax
public MergeField[] MergeFields { get; }Public ReadOnly Property MergeFields As MergeField()Examples
The following example iterates through the merge fields collection and processes each merge field.
foreach (TXTextControl.DocumentServer.Fields.MergeField mergeField in mergeBlockInfo.MergeFields)
{
mergeField.Text = "Quarterly results";
}For Each mergeField As TXTextControl.DocumentServer.Fields.MergeField In mergeBlockInfo.MergeFields
mergeField.Text = "Quarterly results"
NextLimitations
Read only.
Remarks
If this property is called on a MergeBlockInfo instance that was not created from an existing SubTextPart, an exception is thrown.