Articles in this section
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

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied