Return as an integer the numerical index within tagOrId corresponding to index, which is a textual description of a position (for text items an index into the characters, for line and polygon items an index into the coordinates). If tagOrId matches several items, the first one that supports indexing is used.