GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoToolLinking Class / DoNoRelink Method
might be null
might be null
In This Topic
    DoNoRelink Method
    In This Topic
    This is called by DoMouseUp or DoCancelMouse when an existing link was purposely not reconnected by the user to any port.
    Syntax
    public virtual void DoNoRelink( 
       IGoLink oldlink,
       IGoPort fromPort,
       IGoPort toPort
    )

    Parameters

    oldlink
    fromPort
    might be null
    toPort
    might be null
    Remarks

    If the oldlink is Movable, this is considered a relinking to no port, rather than a deletion of the link.

    Because this case (when Movable is false) effectively results in an object being removed from the document, this method calls GoView.RaiseSelectionDeleting and GoView.RaiseSelectionDeleted. If the GoView.RaiseSelectionDeleting event results in a cancellation, this calls DoCancelMouse instead of removing the link. This method does not remove the link if CanDelete is false.

    This method is responsible for setting TransactionResult, so that Stop's call to StopTransaction will properly call GoView.FinishTransaction or GoView.AbortTransaction, as desired.

    See Also