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
public int ClearTemplate(
	bool removeMergeFields = true,
	bool removeMergeRanges = true


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

Returns the number of removed MergeFields.
See Also