GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPort Class / CanLinkTo Method
In This Topic
    CanLinkTo Method (GoPort)
    In This Topic
    This predicate should be true if, by itself, there is no known reason why one couldn't create a valid link from some port to this one.
    Syntax
    public virtual bool CanLinkTo()
    Remarks
    To be true, this port must pass IsValidTo, GoObject.CanView, and .Layer.CanLinkObjects (if it belongs to a layer). Furthermore, if IsValidSingleLink is true, the value of LinksCount must be zero. To control the validity of link creation considering two ports, override IsValidLink or set one of the properties that that method depends on.
    See Also