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 Surface1_AllowLink(ByVal ElementFrom As EXSURFACELibCtl.IElement, ByVal ElementTo As EXSURFACELibCtl.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: