Type | Description | |||
ElementTo as Element | An Element object that specifies the ending element | |||
Boolean | A Boolean expression that specifies if a path exists between current element to specified element. A Path is defined by the element and its outgoing links. |
For instance, you can use the PathTo property to prevent adding cycles in the chart, as in the following VB sample:
Private Sub SwimLane1_AllowLink(ByVal ElementFrom As EXSWIMLANELibCtl.IElement, ByVal ElementTo As EXSWIMLANELibCtl.IElement, Cancel As Boolean) Cancel = ElementTo.PathTo(ElementFrom) End Sub
The AllowLink event notifies that the user links two elements.
The following screen shot shows the path between Element A and Element B: