WoW:API Region GetHeight: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 14: Line 14:


: height
: height
:; height : Number - The height of the frame-based object.
:; height : Number - The height of the frame-based object (This is the desired height, if set with SetHeight, or the actual height if no desired height has been provided)


----
----

Revision as of 21:46, 11 January 2006

GetHeight -Documentation by AeroBrain-

Gets the height of a frame-based object.

height = FrameLayout:GetHeight();

Arguments
none

Returns
height
height
Number - The height of the frame-based object (This is the desired height, if set with SetHeight, or the actual height if no desired height has been provided)

Example
myAddonOptionsParent = myAddonOptions:GetParent();
myAddonOptions:SetHeight(myAddonOptionsParent:GetHeight() / 2);
Result
The frame named 'myAddonOptions' would be set to half the height of its parent frame.



Template:WoW API