Changes

Jump to navigation Jump to search

gc:getStringWidth

519 bytes added, 15:00, 11 July 2011
Created page with "gc:'''getStringWidth''' is a function that is part of the gc. Returns a number : the string's width in pixels. {{Since|3.0}} == Syntax == gc:'''getStringWidt..."
gc:'''getStringWidth''' is a function that is part of the [[:Category:gc|gc]].

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

{{Since|3.0}}

== Syntax ==
gc:'''getStringWidth'''(string)

{| class="wikitable"
|-
! Parameter !! Type !! Description
|-
| <u><center>string</center></u> || string || The string you want to have the width of.
|-
|}

== Example ==
<syntaxhighlight>width = gc:getStringWidth("hello") -- width = 5</syntaxhighlight>

== See also ==
*[[gc:getStringHeight]]

<br /><br />

[[Category:gc]]

Navigation menu