Profile Picture

How to centralize the layout

Posted By Sandor Nagy 14 Years Ago
Author
Message
Sandor Nagy
Posted 14 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 7, Visits: 1
Hi,
I'm using the NGraphDataSourceImporter (with its VertexImported and EdgeImported) events to create vertices and edges. I'm using the following layout:
Dim layout As NLayeredGraphLayout = New NLayeredGraphLayout()
layout.Direction = LayoutDirection.LeftToRight
layout.EdgeRouting = LayeredLayoutEdgeRouting.Orthogonal
layout.Compact = False
layout.StraightenLines = True
layout.NodeAlignment = RelativeAlignment.Center

Please see the attached screenshot. The problem is that the yellow "Permit Issuance" vertex is not in the same line as the white "Permit Application" vertex on the right. How can I set that the 1st white vertex is the center vertically of the diagram, so it means that the yellow vertex will be in the same line as the white vertex?

Thanks,
Sandor Nagy

Attachments
layout.png (87 views, 132.00 KB)



Similar Topics


Reading This Topic