GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / Selectable Property
In This Topic
    Selectable Property
    In This Topic
    Gets or sets whether the user can select this object.
    Syntax
    [Category("Behavior")]
    [DefaultValue(true)]
    [Description("Whether users can select this object.")]
    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.
    See Also