Applies to: Nevron Diagram for .NET
How to position a group of shapes in the center of the page?
You can position a Group in the middle of the document by using the following code:
[C#]
group.UpdateModelBounds();
group.Location =
new
NPointF((document.Width - group.Width) / 2, (document.Height - group.Height) / 2);
[VB.NET]
group.UpdateModelBounds()
group.Location =
New
NPointF((document.Width - group.Width) / 2, (document.Height - group.Height) / 2)
Article ID: 83, Created On: 10/11/2010, Modified: 11/15/2010