GoDiagram Web Reference
Location Property (GoObject)

Gets or sets this object's natural position.
Syntax
'Declaration
 
<CategoryAttribute("Bounds")>
<DescriptionAttribute("The natural location for this object, perhaps different from Position.")>
<TypeConverterAttribute("Northwoods.GoWeb.GoPointFConverter, Northwoods.GoWeb, Version=5.0.0.45, Culture=neutral, PublicKeyToken=a4e3b7b70161cfe8")>
Public Overridable Property Location As PointF
[CategoryAttribute("Bounds")]
[DescriptionAttribute("The natural location for this object, perhaps different from Position.")]
[TypeConverterAttribute("Northwoods.GoWeb.GoPointFConverter, Northwoods.GoWeb, Version=5.0.0.45, Culture=neutral, PublicKeyToken=a4e3b7b70161cfe8")]
public virtual PointF Location {get; set;}

Property Value

The PointF value is in document coordinates.
Remarks
This property is normally the object's TopLeft position. However, it is common for certain kinds of objects to assume that the assigned location actually refers to a different spot of the bounding rectangle. For example, for GoText objects, the text's alignment property determines the Location. For groups, one of the child objects might be the natural thing to be positioned as the user would see it. For example, the icon of a node might provide the Location for the node as a whole. If you override this property, you should also override SetSizeKeepingLocation.
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
SetSizeKeepingLocation Method
GetSpotLocation Method
SetSpotLocation(Int32,PointF) Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback