Widget/API/SetAnchor

__NOTOC__
Allows you to set a Widget's anchor. 
MyWidget:SetAnchor(point, relativePoint, relativeTo, offsetX, offsetY);
== Parameters ==
=== Arguments ===
:;point
::string - The point on the method's parent to anchor (LEFT, RIGHT, BOTTOM, TOP, CENTER, BOTTOMLEFT, BOTTOMRIGHT, TOPLEFT, TOPRIGHT). 
:;relativePoint
::string - The point on the relative widget to anchor(LEFT, RIGHT, BOTTOM, TOP, CENTER, BOTTOMLEFT, BOTTOMRIGHT, TOPLEFT, TOPRIGHT). 
:;relativeTo
::string/widget - The name or object of the relative widget to anchor.
:;offsetX
::number - The offset on the x axis
:;offsetY
::number - The offset on the y axis
=== Returns ===
:;None
== Example ==
myWidget:SetAnchor("LEFT", "LEFT", "myOtherWidget"..line, 10 + 16 * nodeDepth, -1)
myWidget:SetAnchor("RIGHT", "RIGHT", myOtherWidget42, 0,0)
== Notes ==
ClearAllAnchors is typically called before setting new anchors. Not doing this could result in new anchors effecting no change of size or position.
== Widgets With This Method ==
== Related Methods ==
* ClearAllAnchors
* GetAnchor
* GetAnchorOffset
* SetTextAnchor
== Related Pages==
*Widget (Overview)
Category:Widget/API Category:Widget/Class/Layout