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


removeMergeFields (Optional)
Type: SystemBoolean
Remove all MergeFields in case of true.
removeMergeRanges (Optional)
Type: SystemBoolean
Remove the all ranges of MergeFields in case of true.

Return Value

Type: Int32
Returns the number of removed MergeFields.
See Also