Hi Allen,
Please ignore our previous update.
We suggest you to use below mentioned list of Node’s properties, to find the connected nodes and conncetors
1. Edges – it used to find all connected objects.
2. EdgesEntering – it used to find the head end points of the connected objects alone.
3. EdgesLeaving - it used to find the tail end points of the connected objects alone.
Also, please refer to the below sample and video. Also, let us know if your requirement is achieved or not?
Code example:
[VB]
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles button1.Click
If diagram1.View.SelectionList.Count = 1 Then
Dim tonode As Node = TryCast(diagram1.View.SelectionList(0), Node)
Dim text As String = String.Empty
For Each con As ConnectorBase In tonode.Edges
Dim node As Node = TryCast(con.ToNode, Node)
If tonode.Equals(node) Then
Continue For
End If
text += node.Name + Constants.vbLf + con.Name
Next con
MessageBox.Show(text)
End If
End Sub
Sample:
Video:
Regards,
Naganathan K G