ValidationRule.TargetType Property (Visio)
Determines the type of object to which the validation rule applies. Read/write.
Valid validation-rule targets include documents, pages, and shapes. The TargetType property value must be one of the following VisRuleTargets constants.
The rule applies to shapes in the document.
The rule applies to pages in the document.
The rule applies to the document itself.
If you pass any other value to the TargetType property, Visio returns an invalid-parameter error.
The following Visual Basic for Applications (VBA) example shows how to use the TargetType property to specify the type of object to which the validation rule named "Unglued2DShape" should apply.