NShape Reference
ILinearShape.AddConnectionPoint Method

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape > ILinearShape Interface >

NShape Reference
ILinearShape.AddConnectionPoint Method

Previous pageReturn to chapter overviewNext page

Creates a new connection point at the specified position and returns the ControlPointId of the created connection point. The specified coordinates have to be on the outline of the linear shape.

Syntax

ControlPointId AddConnectionPoint(int xint y)

Description

Creates a new connection point at the specified position and returns the ControlPointId of the created connection point. The specified coordinates have to be on the outline of the linear shape.

Available in NShape 2.0

Parameters

Name

Description

x

X coordinate of the new connection point

y

Y coordinate of the new connection point

Return Value

The ControlPointId of the new connection point.

Exceptions

Exception

Condition

NShapeException

Adding a new connection point failed.