GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoToolDragging Class / ComputeEffectiveSelection Method
true for moving, false for copying
In This Topic
    ComputeEffectiveSelection Method
    In This Topic
    Produce a new GoSelection that is the real set of objects to be moved by GoView.MoveSelection or copied by GoView.CopySelection.
    Syntax
    public virtual GoSelection ComputeEffectiveSelection( 
       IGoCollection coll,
       bool move
    )

    Parameters

    coll
    move
    true for moving, false for copying

    Return Value

    a GoSelection that is cached as EffectiveSelection
    Remarks
    This method is used to try to avoid problems with double-moving due to duplicate entries or both a parent and its child being in the argument collection. This also removes objects whose DraggingObject is null or has a false value for CanMove (if move is true) or a false value for CanCopy (if move is false). Furthermore this adds to the collection all links that have both ports in the selection.
    See Also