This example modifies a shape's ConnectionPoints collection at runtime. To illustrate this behavior, we added a trackbar that changes the number and position of connection points.
The ConnectionPoints
collection does not have public members that allow you to add or remove items. To accomplish this task, create a new point collection and assign it to the ConnectionPoints property:
PointFloat[] points = new PointFloat[...];
shape.ConnectionPoints = new DevExpress.Diagram.Core.DiagramPointCollection(points);
- Diagram Control for WinForms - Create Custom Shapes with Connection Points
- Diagram Control for WinForms - Create Custom Shapes with Connection Points in XAML
(you will be redirected to DevExpress.com to submit your response)