get_item_index


Description:

[ Version ( since = "2.4" ) ]
public int get_item_index (ToolItem item)

Returns the position of item on the toolbar, starting from 0.

It is an error if item is not a child of the toolbar.

Parameters:

this

a Toolbar

item

a ToolItem that is a child of this

Returns:

the position of item on the toolbar.