Export (0) Print
Expand All

ValidationRuleSet.RuleSetFlags Property (Visio)

Gets or sets special rule-set properties. Read/write.

Version Added: Visio 2010

expression .RuleSetFlags

expression A variable that represents a ValidationRuleSet object.

Return Value

The RuleSetFlags property value must be one of the following VisRuleSetFlags constants.

Constant

Value

Description

visRuleSetDefault

0

The default set of rule-set properties. The rule set appears in the the Rules to Check list (click the Check Diagram arrow on the Process tab).

visRuleSetHidden

1

The rule set does not appear in the Rules to Check list.

The following Visual Basic for Applications (VBA) example shows how to use the RuleSetFlags property to set the properties for a validation rule set named "Connectivity" in the active document.

Set vsoDocument = Visio.ActiveDocument
Set vsoValidationRuleSet = vsoDocument.Validation.RuleSets.Add("Connectivity")
vsoValidationRuleSet.RuleSetFlags = Visio.VisRuleSetFlags.visRuleSetDefault
Show:
© 2014 Microsoft