GoDiagram Web Reference
SpotOpposite Method

A predefined or user-defined integer spot or handle ID.
Get the spot that is on the opposite side of a given spot.
Syntax
'Declaration
 
Public Overridable Function SpotOpposite( _
   ByVal spot As Integer _
) As Integer
public virtual int SpotOpposite( 
   int spot
)

Parameters

spot
A predefined or user-defined integer spot or handle ID.

Return Value

The opposite spot for the standard nine object spots. For other values, it just returns that value.
Remarks
This is typically used by methods that position objects in a group (such as GoGroup.LayoutChildren) or that specify link points for ports (e.g. GoPort.ToSpot). You may want to override this method to handle your own custom spot values, those with a value greater than
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
GetSpotLocation Method
SetSpotLocation(Int32,PointF) Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback