GoDiagram Web Reference
SetRectangleSpotLocation Method

a RectangleF
a predefine or user-defined integer spot or handle ID.
a PointF specifying the desired new location for the rectangle
Modify a rectangle such that its new spot location is at a given point.
Syntax
'Declaration
 
Public Overridable Function SetRectangleSpotLocation( _
   ByVal r As RectangleF, _
   ByVal spot As Integer, _
   ByVal p As PointF _
) As RectangleF
public virtual RectangleF SetRectangleSpotLocation( 
   RectangleF r,
   int spot,
   PointF p
)

Parameters

r
a RectangleF
spot
a predefine or user-defined integer spot or handle ID.
p
a PointF specifying the desired new location for the rectangle

Return Value

the modified RectangleF; the original Width and Height are kept.
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 GetRectangleSpotLocation 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
GetRectangleSpotLocation Method
GetSpotLocation Method
SetSpotLocation(Int32,PointF) Method

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback