Difference between revisions of "gc:getStringHeight"

From Inspired-Lua Wiki
Jump to navigation Jump to search
m
 
Line 17: Line 17:
  
 
== Example  ==
 
== Example  ==
<syntaxhighlight>width = getStringHeight("hello")</syntaxhighlight>
+
<syntaxhighlight>height = getStringHeight("hello")</syntaxhighlight>
  
 
== See also  ==
 
== See also  ==

Latest revision as of 16:31, 24 August 2015

gc:getStringWidth is a function that is part of the gc.

Returns a number : the string's height in pixels.

This has been introduced in TI-Nspire OS 3.0 (Changes).


Syntax

gc:getStringHeight(string)

Parameter Type Description
string
string The string you want to get the height of.

Example

height = getStringHeight("hello")

See also