SMART datagrid v1.4 > Classes > GridBase

Back  Forward

DataLudi.GridBase.pointToIndex  method

그리드 상대 좌표 (x, y)에 위치한 셀 위치를 리턴한다. 

function pointToIndex (x: Number, y: Number, clipped: Boolean): CellIndex;
Returns
CellIndex
Parameters
x - Number.
y - Number.
clipped - Boolean.
Code -1
    var idx = grid.pointToIndex(100, 100);
    grid.setFocusedCell(idx);
See Also
CellIndex