Share via


ValidationRule.Description Property (Visio)

Specifies the description of the ValidationRule object that appears in the user interface. Read/write.

Version Information

Version Added: Visio 2010

Syntax

expression .Description

expression A variable that represents a ValidationRule object.

Return Value

String

Remarks

You cannot set the Description property to a value that exceeds 255 characters.

Example

The following Visual Basic for Applications (VBA) example shows how to use the Description property to set the description that appears in the user interface for the validation rule named "Unglued2DShape".

Set vsoValidationRule = vsoValidationRuleSet.Rules.Add("Unglued2DShape")
vsoValidationRule.Description = "This 2-dimensional shape is not connected to any other shape."