Widget API: Frame:GetFrameType

From AddOn Studio
Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API Frame GetFrameType to API Frame GetFrameType without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Widget API ← Frame < GetFrameType

Synopsis[edit]

string frameType = Frame:GetFrameType();

Description[edit]

This returns the type of the frame the GetFrameType() method is used on.

It will return a string of the name of the Frame(-derived) object. For a complete list see object types

Return values[edit]

frameType
String - The name of the type, ie. "Frame"

Examples[edit]

local frameType = QuestLogCollapseAllButton:GetFrameType();

The above should return the string "Button" in local variable frameType.

Notes[edit]

  • This method may not exist for all Frames.