title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
ValidationRuleSet.Enabled property (Visio) |
vis_sdr.chm18213455 |
|
|
1fc9c692-736d-6686-fb47-5bd7efb39773 |
06/08/2017 |
medium |
Determines whether the rules in the specified validation rule set are checked when validation is triggered for the current document. Read/write.
expression.Enabled
expression A variable that represents a ValidationRuleSet object.
Boolean
If the value of the Enabled property is True, the rules in the validation rule set are checked when validation is triggered for the current document. Validation is triggered when the user clicks Check Diagram on the Process tab or when the Validate method is run on the current document.
Rule sets for which the value of Enabled is False are purged from the current document when the RemoveHiddenInformation method is run with the visRHIValidationRules flag set, or when the equivalent command is issued in the user interface.
The following Visual Basic for Applications (VBA) example shows how to use the Enabled property to enable a validation rule set named "Connectivity" in the active document.
Set vsoDocument = Visio.ActiveDocument
Set vsoValidationRuleSet = vsoDocument.Validation.RuleSets.Add("Connectivity")
' Enable the rule set.
vsoValidationRuleSet.Enabled = True
[!includeSupport and feedback]