GoDigram for .NET Framework and .NET Core
Northwoods.Go.Layout Namespace / GoLayoutGenericNetwork<N,L,Y> Class / GetNodesAndLinks Method
An Northwoods.Go.IGoCollection; if null, the method allocates and returns a Northwoods.Go.GoSelection.
In This Topic
    GetNodesAndLinks Method
    In This Topic
    Retrieve all of the Northwoods.Go.GoObject nodes and links from the GoLayoutGenericNetwork.Node<N,L,Y>s and GoLayoutGenericNetwork.Link<N,L,Y>s that are in this network, by adding them to the given coll.
    Syntax
    public IGoCollection GetNodesAndLinks( 
       IGoCollection coll
    )

    Parameters

    coll
    An Northwoods.Go.IGoCollection; if null, the method allocates and returns a Northwoods.Go.GoSelection.

    Return Value

    Remarks
    If you pass a value for , we recommend using a Northwoods.Go.GoSelection instead of a Northwoods.Go.GoCollection, since Northwoods.Go.GoSelection has more efficient lookup for avoiding duplicates. A Northwoods.Go.GoSelection is also handy for easily moving all those objects by calling Northwoods.Go.GoView.MoveSelection. You can determine the bounding rectangle for a collection of nodes and links by calling the static/shared method Northwoods.Go.GoDocument.Northwoods.Go.GoDocument.ComputeBounds.
    See Also