get_item_position


Description:

[ Version ( since = "2.8" ) ]
public int get_item_position (Item item)

Returns the position of the item in its level of its item tree.

This procedure determines the position of the specified item in its level in its item tree in the image. If the item doesn't exist in the image, or the item is not part of an item tree, an error is returned.

Parameters:

this

The image.

item

The item.

Returns:

The position of the item in its level in the item tree.