Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Vision for NET
»
Nevron Diagram for .NET
»
How to centralize the layout
How to centralize the layout
Post Reply
How to centralize the layout
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Sandor Nagy
Sandor Nagy
posted 15 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 7,
Visits: 1
I found the solution.
I had to set the layout.Compact property to true.
Reply
Like
0
Sandor Nagy
Sandor Nagy
posted 15 Years Ago
ANSWER
Topic Details
Group: Forum Members
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
(
104 views,
132.00 KB
)
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search