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
Name | Type | Description |
---|---|---|
points | IEnumerable<Point> | Enumerate bend coordinates |
Return value
- void
Exception
Name | Exception class | Description |
---|---|---|
Invalid argument | ExtensionArgumentException | If null is specified for points |
Invalid operation | ExtensionInvalidOperationException | When executed on a connector in a tree diagram When executed on a connector in a feature tree diagram |