GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPort Class / IsValidLink Method
In This Topic
    IsValidLink Method (GoPort)
    In This Topic
    True if it is valid to create a link from this port to toPort.
    Syntax
    public virtual bool IsValidLink( 
       IGoPort toPort
    )

    Parameters

    toPort
    Remarks

    By default this is true when toPort is not the same as this port, CanLinkFrom is true, and CanLinkTo is true for the toPort port. Furthermore, this considers the IsValidSelfNode, the IsValidDuplicateLinks, and the GoDocument.ValidCycle properties.

    This is called by GoToolLinkingNew.GoToolLinking.IsValidLink and GoToolRelinking.GoToolLinking.IsValidLink.

    See Also