WoW:API FontString GetText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API FontString GetText to API FontString GetText without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
Returns the text from any [[UIOBJECT FontString|FontString]] UI object.
Returns the text from any [[UIOBJECT FontString|FontString]] UI object.


  text = <i>FontString</i>:GetText();
  text = ''FontString'':GetText();


== Parameters ==
== Parameters ==
=== Arguments ===
=== Arguments ===


:<i>none</i>
:''none''


=== Returns ===
=== Returns ===


:;text : String - The text of the FontString.
:;text : String - The text of the FontString. Returns nil if the FontString is an empty string.

Latest revision as of 04:45, 15 August 2023

Widget API ← FontString < GetText

Returns the text from any FontString UI object.

text = FontString:GetText();

Parameters

Arguments

none

Returns

text
String - The text of the FontString. Returns nil if the FontString is an empty string.