GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoLayer Class / AllowLink Property
In This Topic
    AllowLink Property (GoLayer)
    In This Topic
    Gets or sets whether the user can link objects in this layer.
    Syntax
    [Category("Behavior")]
    [DefaultValue(true)]
    [Description("Whether the user can link ports in this layer.")]
    public bool AllowLink {get; set;}
    Remarks
    A false value prevents the user from linking objects in this layer by the normal mechanisms. Even when this property value is true, some objects might not be linkable by the user because the document or the ports disallow it, or because the view disallows it. Your code can always link objects programmatically by calling Document.LinksLayers.Add(newLink), where newLink is a newly created instance of a class like GoLink or GoLabeledLink whose IGoLink.FromPort and IGoLink.ToPort properties have been set to ports in the same document.
    See Also