Connection

Connection class

Contains elements for one connection point defined for the shape.

Constructors

NameDescription
ConnectionConstructor.

Properties

NameTypeDescription
NameStringThe name of the element.
NameUStringThe universal name of the element.
IDintThe unique ID of the element within its parent element.
IXintThe zero-based index of the element within its parent element.
DelintA flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted loca
XDoubleValueSpecifies an x-coordinate on a shape in local coordinates.
YDoubleValueSpecifies a y-coordinate on a shape in local coordinates. Local coordinates are those whose frame of reference is the sh
DirXDoubleValueSpecifies the x-component for the required alignment vector of a matching connection point. The DirX element is also use
DirYDoubleValueSpecifies the y-component for the required alignment vector of a matching connection point. The DirY element is also use
TypeTypeConnectionSpecifies various types, based on the element in which it is contained.
AutoGenBoolValueSpecifies if the connection point is generated automatically. A value of 1 indicates that the connection point is genera
PromptStr2ValueContains varying prompt information, based on the element in which it is contained.

Methods

NameDescription
deepCloneCreates deep copy of this instance.

Connection()

Constructor.

Connection.Name property

The name of the element.

Type: String

Connection.NameU property

The universal name of the element.

Type: String

Connection.ID property

The unique ID of the element within its parent element.

Type: int

Connection.IX property

The zero-based index of the element within its parent element.

Type: int

Connection.Del property

A flag indicating whether the element has been deleted locally. A value of 1 indicates that the element was deleted locally. The value of the property is BOOL integer constant.

Type: int

Connection.X property

Specifies an x-coordinate on a shape in local coordinates.

Type: DoubleValue

Connection.Y property

Specifies a y-coordinate on a shape in local coordinates. Local coordinates are those whose frame of reference is the shape, instead of the page.

Type: DoubleValue

Connection.DirX property

Specifies the x-component for the required alignment vector of a matching connection point. The DirX element is also used to orient the attached leg of a dynamic connector.

Type: DoubleValue

Connection.DirY property

Specifies the y-component for the required alignment vector of a matching connection point. The DirY element is also used to orient the attached leg of a dynamic connector.

Type: DoubleValue

Connection.Type property

Specifies various types, based on the element in which it is contained.

Type: TypeConnection

Connection.AutoGen property

Specifies if the connection point is generated automatically. A value of 1 indicates that the connection point is generated automatically.

Type: BoolValue

Connection.Prompt property

Contains varying prompt information, based on the element in which it is contained.

Type: Str2Value

deepClone()

Creates deep copy of this instance.