index

(#<widget> 'index tagOrId index)
This command returns a decimal string giving the numerical index within tagOrId corresponding to index.

Index gives a textual description of the desired position as described above. Text items interpret index as an index to a character, line and polygon items interpret it as an index to a coordinate (an x,y pair).

The return value is guaranteed to lie between 0 and the number of characters, or coordinates, within the item, inclusive.

If tagOrId refers to multiple items, then the index is processed in the first of these items that supports indexing operations (in display list order).


© Author | Home | Sitemap