GoDiagram Web Reference
Selectable Property

Gets or sets whether the user can select this object.
Syntax
'Declaration
 
<DescriptionAttribute("Whether users can select this object.")>
<DefaultValueAttribute()>
<CategoryAttribute("Behavior")>
Public Overridable Property Selectable As Boolean
[DescriptionAttribute("Whether users can select this object.")]
[DefaultValueAttribute()]
[CategoryAttribute("Behavior")]
public virtual bool Selectable {get; set;}

Property Value

This defaults to true. However, for some objects, such as GoPort, this defaults to false. You should normally call the CanSelect method instead of getting this property.
Remarks
A false value prevents the user from selecting this object by the normal mechanisms. Normally all the child objects of a group should have Selectable set to false. Even when this property value is true, this object might not be selectable by the user because its layer or document disallows it, or because the view disallows it. Your code can always select objects programmatically by calling aView.Selection.Select(obj) or aView.Selection.Add(obj). When this object's CanSelect is false, then if this object is part of a group, the normal selection mechanism will see if the group's CanSelect is true. If so, the group will be selected.
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

GoObject Class
GoObject Members
CanSelect Method
CanSelectObjects Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback