GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoPort Class / IsValidSingleLink Property
In This Topic
    IsValidSingleLink Property
    In This Topic
    Gets or sets whether CanLinkFrom and CanLinkTo return false when there is already a link connected at this port.
    Syntax
    [Category("Behavior")]
    [DefaultValue(false)]
    [Description("Whether this port is limited to having at most one connected link.")]
    public virtual bool IsValidSingleLink {get; set;}

    Property Value

    This defaults to false -- an unlimited number of links can be valid.
    Remarks
    If you want to provide different or more general limitations on how many links can be connected to this port, you may need to override CanLinkFrom and CanLinkTo. For the most general way to control whether links might be valid, you may need to override IsValidLink. But first consider all of the other GoPort properties governing link validity.
    See Also