I use AddItem(item,null,port) to add an RecordItem with a triangle right port but the triangle would be diplayed from the left side to the right side of the record. Is there any way to fix this problem??
That’s intentional, because as you can see in the implementation of RecordNode.LayoutChildren in the sample code, the RecordNode class assumes there’s just one port per item (the RightPort one) and that it extends across the whole width of the item. Note too how RecordNode.CreatePort is overridden to create a SidewaysPort.
I think you might not want to use RecordNode at all, but just the GoMultiTextNode class that RecordNode inherits from. I think you can continue using the RecordItem class if you want to.