Gets or sets a collection of the control points of this link.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
SyntaxC#
Copy Code
|
|---|
public List<Point> ControlPoints { get; set; } |
Visual Basic
Copy Code
|
|---|
Public Property ControlPoints As List(Of Point) |
A collection of control points that specify the link's shape.
RemarksYou can specify new positions of a link's points through that 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 shapes 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.
ExampleThe following example demonstrates how to programmatically setup the control points of a link:
C#
Copy Code
|
|---|
DiagramLink link; link = Diagram.Links[0]; // Move the second and the third points // Update state and redraw |
Visual Basic
Copy Code
|
|---|
Dim link As DiagramLink link = diagram.Links(0) ' Move the second and the third points ' Update state and redraw |
See Also