Difference between revisions of "TextField:getPointFromTextPosition"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2019.5<br/> '''<translate>Class</translate>:''' TextField<br/> =...")
 
Line 13: Line 13:
 
'''<translate>Returns</translate>''' (number) <translate>The X coordinate.</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>The X coordinate.</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>The Y coordinate.</translate><br/>
 
'''<translate>Returns</translate>''' (number) <translate>The Y coordinate.</translate><br/>
 +
 +
{{TextField}}

Revision as of 01:38, 4 December 2019


Available since: Gideros 2019.5
Class: TextField

Description

Returns the coordinates from a given offset within the text

(number),(number) = TextField:getPointFromTextPosition(offset)

Parameters

offset: (string) The byte ofsset into the text string.

Return values

Returns (number) The X coordinate.
Returns (number) The Y coordinate.