Northwoods.Go.Layout Assembly > Northwoods.Go.Layout Namespace : GoLayoutTree Class |
'Declaration <SerializableAttribute()> Public Class GoLayoutTree Inherits GoLayout
[SerializableAttribute()] public class GoLayoutTree : GoLayout
GoDocument doc = goView1.Document; doc.StartTransaction(); GoLayoutTree layout = new GoLayoutTree(); layout.Document = doc; layout.Angle = 90; layout.NodeSpacing = 15; layout.LayerSpacing = 40; // ...maybe set other properties, such as those of layout.AlternateDefaults ... layout.PerformLayout(); doc.FinishTransaction("layout");
GoDocument doc = goView1.Document; doc.StartTransaction(); GoLayoutTree layout = new GoLayoutTree(); layout.Document = doc; layout.Network = layout.CreateNetwork(); // if you want to start off with the network representing the complete document, // and then remove the nodes (or links) that you don't want: layout.Network.AddNodesAndLinksFromCollection(doc, true); foreach (GoObject obj in doc) { if (...obj is a node that you want to exclude from the layout...) { layout.Network.DeleteNode(obj); // there is also a DeleteLink method } } layout.Angle = 90; layout.NodeSpacing = 15; layout.LayerSpacing = 40; // ...maybe set other properties... layout.PerformLayout(); doc.FinishTransaction("layout");
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
Northwoods.Go.Layout.GoLayout
Northwoods.Go.Layout.GoLayoutTree
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2