次の方法で共有


ValidationRuleSet.RuleSetFlags Property (Visio)

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

Version Information

Version Added: Visio 2010

Syntax

expression .RuleSetFlags

expression A variable that represents a ValidationRuleSet object.

Return Value

VisRuleSetFlags

Remarks

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.

Example

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