OneD property

Microsoft Visio Developer Reference

OneD property

See also   Example   

Determines whether an object behaves as a one-dimensional (1-D) object.

Version added

2.0

Syntax

retVal = object.OneD
object.OneD = intExpression

retVal

Integer. True if the shape is 1-D; False if the shape is 2-D.

object

Required. An expression that returns a Master or Shape object.

intExpression

Required Integer. Zero to declare object as 2-D; non-zero to declare it as 1-D.

Remarks

Setting the OneD property is equivalent to changing a shape's interaction style in the Behavior dialog box (click Behavior on the Format menu). Setting the OneD property for a 1-D shape to False deletes its 1-D Endpoints section, even if the cells in that section were protected with the GUARD function.

You can get, but not set, the OneD property of a Master object.

A guide does not have a OneD property.

The OneD property of an object from another application is always False.