GoDiagram Web Reference
SetSpotLocation(Int32,GoObject,Int32,Single,Single) Method

A predefined or user-defined integer spot or handle ID.
another GoObject
a spot on the other object, obj
Move this object so this object's given spot is the same as another object's spot's position and offset by a given X and Y distance.
Syntax
'Declaration
 
Public Overloads Sub SetSpotLocation( _
   ByVal spot As Integer, _
   ByVal obj As GoObject, _
   ByVal otherSpot As Integer, _
   ByVal dx As Single, _
   ByVal dy As Single _
) 
public void SetSpotLocation( 
   int spot,
   GoObject obj,
   int otherSpot,
   float dx,
   float dy
)

Parameters

spot
A predefined or user-defined integer spot or handle ID.
obj
another GoObject
otherSpot
a spot on the other object, obj
dx
dy
Remarks

Use this method when you want a spot on this object to be near, but not exactly at, a spot on another object, by moving this object. This is just like SetSpotLocation(Int32,GoObject,Int32), except that it first adds the dx and dy offsets to the point of the obj's otherSpot.

Remember that this method just moves this object once. When other objects in a group resize or move, this object will not automatically follow. You will need to override LayoutChildren to maintain whatever layout you want.

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
Overload List
GetSpotLocation Method
SetSpotLocation(Int32,PointF) Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback