GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutForceDirectedNetwork Class / GoLayoutForceDirectedNetwork Constructor / GoLayoutForceDirectedNetwork Constructor(IGoCollection)
the Northwoods.Go.IGoCollection containing the Northwoods.Go.GoObjects to add to the network.
In This Topic
    GoLayoutForceDirectedNetwork Constructor(IGoCollection)
    In This Topic
    Constructs a network from a collection of GoObjects, by also calling AddNodesAndLinksFromCollection(collection, true)
    Syntax
    public GoLayoutForceDirectedNetwork( 
       IGoCollection collection
    )

    Parameters

    collection
    the Northwoods.Go.IGoCollection containing the Northwoods.Go.GoObjects to add to the network.
    Remarks
    If you want an automatic layout of all the objects in a collection, you'll want to do something like the following code: GoLayout... layout = new GoLayout...(); layout.Document = ...document...; layout.Network = layout.CreateNetwork(); layout.Network.AddNodesAndLinksFromCollection(...collection..., false); ...maybe set other properties... layout.PerformLayout();
    See Also