PointFromChar()

Syntax:

textObject.PointFromChar( CharIndex )

Return:

This function Returns an object containing the coordinates of the specified character as these properties:

x - the x coordinate of the top-left of the character relative to the text object.

y - the y coordinate of the top-left of the character relative to the text object.

width - the width of the character.

height - the height of the character.

Parameters:

CharIndex – The Index position of the character within the specified Text object. The index is a zero-based index. CharIndex must be an integer or a variable name containing an integer. This parameter is required.

Remarks:

The Return Values describe the position for the text without any effects or animations applied (rotation/scale etc.).

image\Script_Button.jpgExamples