API Region GetNumPoints

Returns the number of anchor points that a region is using to position itself. number = MyRegion:GetNumPoints

Returns

 * number
 * The number of anchor points used to position a region


 * relativeTo

Example
-- a way of looping through all points for i=1, MyRegion:GetNumPoints do       print(MyRegion:GetPoint(i)); end

Details

 * Returns zero on a newly-created region, or after a call to ClearAllPoints
 * Returns a positive integer after SetPoint or SetAllPoints; but the value will not increase further by repeated calls overwriting the same point (ie, setting "TOPLEFT" more than once)
 * SetHeight, SetWidth and SetSize do not actually create points and leave this value unchanged