Skip to main content

IConnector.AddBends method

Namespace: NextDesign.Core

Description

Adds a bend at the specified enumeration of coordinates to the connector.
Add bends in order from the connector's connection source (StartPoint) to the connection destination (EndPoint).

If you run this on a connector whose line type is a linear Bezier curve or a quadratic Bezier curve, the display may be distorted when it is displayed on the UI.
Also, when you redisplay the connector, if there are too many or too few bends for the line type, the vents will be recreated and relocated.
Example) There are three bends in a quadratic Bezier curve.

argument

NameTypeDescription
pointsIEnumerable<Point>Enumerate bend coordinates

Return value

  • void

Exception

NameException classDescription
Invalid argumentExtensionArgumentExceptionIf null is specified for points
Invalid operationExtensionInvalidOperationExceptionWhen executed on a connector in a tree diagram
When executed on a connector in a feature tree diagram