TOC : Script API > JavaScript > JavaScript API > GeneralScript > DrawingContext > Method >

 

moveTo

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > GeneralScript > DrawingContext > Method >

 

moveTo

 

 

Moves the path point to the given position.

 

 

 

Prototype :

 

void moveTo

(

        float X,

        float Y

)

 

 

 

Arguments :

 

X

X coordinate

Y

Y coordinate

 

 

 

Reference :

 

The X and Y coordinates of the shape are relative to the upper-left corner of the component.

 

 

 

Example :

 

ctx.moveTo(10, 10);

 

 

 

Available Events :

 

OnPostDraw,  OnPreDraw