Data2 property

Microsoft Visio Developer Reference

Data2 property

       

Gets or sets the value of the Data2 field for a Shape object.

Version added

2.0

Syntax

strRet = object.Data2
object.Data2 = strExpression

strRet

String. The current value of the field.

object

Required. An expression that returns a Shape object.

strExpression

Required String. The new value for the field.

Remarks

Use the Data2 property to supply additional information about a shape. The property can contain up to 64 KB of characters. Text controls should be used with care with a string that is greater than 3,000 characters.

Setting the Data2 property is equivalent to entering information in the Data 2 box in the Special dialog box (click Special on the Format menu).