Working with the ValidationIssues collection

The ValidationIssues collection stores the issues created by the Validation.Validate([RuleSet as ValidationRuleSet][, Flags as ValidationFlags]) method and by the RuleSet.AddIssue([TargetPage as Page][,TargetShape as Shape]) method. It can be reset using the Clear() method, which will also zero LastValidatedDate of the parent Validation object.

Working with the ValidationIssues collection

Most issues are automatically created by the Validate() method but you can write code to add issues whenever the user clicks on Check Diagram against a particular ruleset. You would do this by listening to the RuleSetValidated(RuleSet as ValidationRuleSet) event ...

Get Microsoft Visio 2013 Business Process Diagramming and Validation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.