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

Parameters

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