Click or drag to resize

MailMergeClearTemplate Method

Remove all MergeFields from the current document.

Namespace: SautinSoft.Document.MailMerging
Assembly: SautinSoft.Document (in SautinSoft.Document.dll) Version: 2024.7.18
Syntax
public int ClearTemplate(
	bool removeMergeFields = true,
	bool removeMergeRanges = true
)

Parameters

removeMergeFields  Boolean  (Optional)
Remove all MergeFields in case of true.
removeMergeRanges  Boolean  (Optional)
Remove the all ranges of MergeFields in case of true.

Return Value

Int32
Returns the number of removed MergeFields.
See Also