Widget/API/GetAnchor

Returns an anchor of a widget.

Arguments

 * index
 * number - Index of anchor to get information of. (optional)
 * Index value starts at 0.
 * If this parameter is not provided, the index defaults to 0.

Returns

 * point
 * string - The point on the widget which is anchored (LEFT, RIGHT, BOTTOM, TOP, CENTER, BOTTOMLEFT, BOTTOMRIGHT, TOPLEFT, TOPRIGHT).
 * relativePoint
 * string - The point on the relative widget which is anchored (LEFT, RIGHT, BOTTOM, TOP, CENTER, BOTTOMLEFT, BOTTOMRIGHT, TOPLEFT, TOPRIGHT).
 * relativeTo
 * widget - The object of the relative widget.
 * offsetX
 * The offset on the x axis
 * offsetY
 * The offset on the y axis

Related Methods

 * ClearAllAnchors
 * GetAnchorOffset
 * GetHeight
 * GetSize
 * GetWidth
 * SetAnchor
 * SetAnchors
 * SetHeight
 * SetSize
 * SetTextAnchor
 * SetWidth

Related Pages

 * Widget (Overview)