GoDiagram Win Reference
Movable Property

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

Property Value

This defaults to true. However, for some objects, such as GoLink, this defaults to false. You should normally call the CanMove method instead of getting this property.
Remarks
A false value prevents the user from moving this object by the normal mechanisms. Even when this property value is true, this object might not be movable by the user because the layer or document disallows it, or because the view disallows it. Your code can always move objects programmatically by calling obj.Position = newPos. When this object is part of a group, the default drag behavior is to move just the object. However, the DraggingObject really determines what is actually moved. Note that some objects will not be able to move, or will not be able to move freely, because of constraints enforced in setting the Bounds or in the parent's GoGroup.LayoutChildren method.
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
CanMove Method
CanMoveObjects Method
DoMove Method

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback