GoDiagram Web Reference
Deletable Property

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

Property Value

This defaults to true. You should normally call the CanDelete method instead of getting this property.
Remarks
A false value prevents the user from deleting this object by the normal mechanisms (i.e., removing it from its layer). Even when this property value is true, this object might not be deletable by the user because the layer or document disallows it, or because the view disallows it. Your code can always delete objects programmatically by calling obj.Remove(). When this object is part of a group, the default edit delete behavior is to remove the object from the group.
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
CanDelete Method
CanDeleteObjects Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback