Nevron Forum

NGroup and ports

https://www.nevron.com/Forum/Topic4475.aspx

By Michael Heyda - Monday, November 15, 2010

I'm trying to create a tree using NTreeLayout but I need to create shapes similar to the UML diagram, but need control over the layout. It seems like the way to do this is to create a group for each vertex in the tree and then put a title control and a table control in it. I can get this far but I can't add ports to the group for use in the tree. The Ports collections on the NGroup object is null and read-only.

Is this the correct approach, and if so how do I handle the ports. If this is not the correct approach, what is?
By Nevron Support - Monday, November 15, 2010

Hi Michael,

To create the ports collection, use the following syntax:

 

shape.CreateShapeElements(ShapeElementsMask.Ports);