Category / Section
How can I create a directional Link?
1 min read
How can I create a directional Link?
Links can be provided with end point decorators to convey direction. The following code snippet shows how to create a directional link by adding a 'Filled Arrow' end point visual to the head port edge of the Link,
[C#]
// Create a directional link Link link = new Link(pts); EndPointDecoratorModel decoratorMdl = Global.EndPointDecoratorPalette["Filled Arrow"]; if (decoratorMdl != null) { link.EndPoints.LastEndPointDecorator = decoratorMdl.CreateInstance(); } |
[VB.NET]
// Create a directional link Dim link As New Link(pts) Dim decoratorMdl As EndPointDecoratorModel = Global.EndPointDecoratorPalette("Filled Arrow") If Not (decoratorMdl Is Nothing) Then link.EndPoints.LastEndPointDecorator = decoratorMdl.CreateInstance() End If |