Widget/API/GetPos

__NOTOC__
Gets the position value of a Widget
X, Y = MyWidget:GetPos()
== Parameters ==
=== Arguments ===
:None
=== Returns ===
:;Two Values, X and Y.
----
== Example ==
<Frame name="MainFrame_TextBox">
	<OnDragStop>
	this:StopMovingOrSizing()
	MainFrame_GetPos()
	</OnDragStop>
</Frame>
function MainFrame_GetPos()
 X, Y = MainFrame:GetPos()
 DEFAULT_CHAT_FRAME:AddMessage("X: "..X.." Y: "..Y)
end
== Related Pages==
*Widget (Overview)
Category:Widget/API Category:Widget/Class/Layout