GoDiagram Web Reference
GetRectangleSpotLocation Method

a RectangleF
a predefine or user-defined integer spot or handle ID.
Get the position of a spot in a rectangle.
Syntax
'Declaration
 
Public Overridable Function GetRectangleSpotLocation( _
   ByVal r As RectangleF, _
   ByVal spot As Integer _
) As PointF
public virtual PointF GetRectangleSpotLocation( 
   RectangleF r,
   int spot
)

Parameters

r
a RectangleF
spot
a predefine or user-defined integer spot or handle ID.

Return Value

the PointF position of that spot in the rectangle
Remarks
This is typically used by methods that need to position objects within a group. You may want to override this method to handle your own custom spot values, those with a value greater than LastSpot. If you do so, you will also need to override SetRectangleSpotLocation and SpotOpposite.
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
SetRectangleSpotLocation Method
GetSpotLocation Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback