Data1 property

Microsoft Visio Developer Reference

Data1 property

       

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

Version added

2.0

Syntax

strRet = object.Data1
object.Data1 = 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 Data1 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 Data1 property is equivalent to entering information in the Data 1 box in the Special dialog box (click Special on the Format menu).