WoW:API Region GetHeight: Difference between revisions
Jump to navigation
Jump to search
GetHeight -Documentation by AeroBrain-
(Returns the height of a frame-based object) |
m (Updated format) |
||
Line 3: | Line 3: | ||
Gets the height of a frame-based object. | Gets the height of a frame-based object. | ||
height = <i>FrameLayout</i>:GetHeight(); | |||
---- | ---- | ||
;''Arguments'' | ;''Arguments'' | ||
: | :<i>none</i> | ||
---- | ---- | ||
;''Returns'' | ;''Returns'' | ||
: | : height | ||
:; height : Number - The height of the frame-based object. | |||
---- | ---- | ||
Line 22: | Line 23: | ||
;''Result'' | ;''Result'' | ||
: The frame named 'myAddonOptions' would be set to half the height of its parent frame. | : The frame named 'myAddonOptions' would be set to half the height of its parent frame. | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Frame Functions|FrameLayout GetHeight]] |
Revision as of 02:18, 7 January 2005
Gets the height of a frame-based object.
height = FrameLayout:GetHeight();
- Arguments
- none
- Returns
- height
- height
- Number - The height of the frame-based object.
- 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.