GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoObject Class / SetSpotLocation Method / SetSpotLocation(Int32,GoObject,Int32,SizeF) Method
A predefined or user-defined integer spot or handle ID.
another GoObject
a spot on the other object, obj
In This Topic
    SetSpotLocation(Int32,GoObject,Int32,SizeF) Method
    In This Topic
    Move this object so this object's given spot is the same as another object's spot's position and offset by a given distance.
    Syntax
    public void SetSpotLocation( 
       int spot,
       GoObject obj,
       int otherSpot,
       SizeF offset
    )

    Parameters

    spot
    A predefined or user-defined integer spot or handle ID.
    obj
    another GoObject
    otherSpot
    a spot on the other object, obj
    offset
    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 offset width and height 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.

    See Also