[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.Templates.DataTemplate.Validate

Validate Method

Validate(bool)

Validates all templates in the current document, finds any template tags that are malformed or used incorrectly.

Declaration
public IEnumerable<TemplateError> Validate(bool markErrors = false)
Public Function Validate(Optional markErrors As Boolean = False) As IEnumerable(Of TemplateError)
Parameters
Type Name Description
bool markErrors

If true, erroneous tags will be marked in the document, and a Comment with the error description will be added to each such occurrence. If false, the templates will be left as is, just the list of errors will be returned.

Returns
Type Description
IEnumerable<TemplateError>

The list of all found template errors.