GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / SetRectangleSpotLocation Method
a RectangleF
a predefine or user-defined integer spot or handle ID.
a PointF specifying the desired new location for the rectangle
In This Topic
    SetRectangleSpotLocation Method
    In This Topic
    Modify a rectangle such that its new spot location is at a given point.
    Syntax
    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.
    See Also