GoDiagram Web Reference
IsValidSingleLink Property

Gets or sets whether CanLinkFrom and CanLinkTo return false when there is already a link connected at this port.
Syntax
'Declaration
 
<CategoryAttribute("Behavior")>
<DescriptionAttribute("Whether this port is limited to having at most one connected link.")>
<DefaultValueAttribute()>
Public Overridable Property IsValidSingleLink As Boolean
[CategoryAttribute("Behavior")]
[DescriptionAttribute("Whether this port is limited to having at most one connected link.")]
[DefaultValueAttribute()]
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.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

GoPort Class
GoPort Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback