CODLinkComponent::Create

Creates the link component from a series of points and a source and target port.

Defined in: OdLinkComp.cpp

Syntax

BOOL CODLinkComponent::Create(CODPointArray* pPointArray, CODPortComponent* pSourcePort, CODPortComponent* pTargetPort)

BOOL CODLinkComponent::Create(LPPOINT lpPoints, int nCount, CODPortComponent* pSourcePort, CODPortComponent* pTargetPort)

BOOL CODLinkComponent::Create(CODPortComponent* pSourcePort, CODPortComponent* pTargetPort)

Return Value

Non-zero if the link was sucessfully created.

Parameters

pPointArray

The array of points that form the vertices of the link.

lpPoints

The array of points that form the vertices of the link.

nCount

The count of points in the array.

pSourcePort

The port on the source symbol the link is connected to.

pTargetPort

The port on the target symbol the link is connected to.

Comments

This function creates the line component that is a child of the link component using the points given. If no points are passed in, then the locations of the source and target ports are used as the line endpoints. If source and target ports are passed in, then the link is connected to those ports.