Gets a collection of the control points of this link.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C#
![]() |
---|
public PointCollection ControlPoints { get; } |
Visual Basic
![]() |
---|
Public ReadOnly Property ControlPoints As PointCollection |
A collection of control points that specify the link's shape.
You can specify new positions of a link's points by using this property. The number of points in the collection depends on the Shape and SegmentCount of the link. Links made of Bézier-splines has four control points for each segment. Links of the other styles have two control points per segment. Adjacent segments share a common control point. Check the Count property of the collection to get the number of points. After setting new positions of control points you must call the UpdateFromPoints method.
The following example demonstrates how to programatically setup the control points of a link:
C#
![]() |
---|
DiagramLink link; |
Visual Basic
![]() |
---|
Dim link As DiagramLink |
WpfDiagram Programmer's Guide | © 2025 MindFusion |