GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutGenericNetwork<N,L,Y> Class / GoLayoutGenericNetwork<N,L,Y> Constructor / GoLayoutGenericNetwork<N,L,Y> Constructor(IGoCollection)
the Northwoods.Go.IGoCollection containing the Northwoods.Go.GoObjects to add to the network.
In This Topic
    GoLayoutGenericNetwork<N,L,Y> Constructor(IGoCollection)
    In This Topic
    Constructs a network from a collection of GoObjects, by also calling AddNodesAndLinksFromCollection(collection, true)
    Syntax
    public GoLayoutGenericNetwork<N,L,Y>( 
       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