return getElement().getElementIndex(pos);
int index = -1; int i = 0; for (Iterator it = children.iterator(); it.hasNext(); i++) { View child = (View) it.next(); if (child.getStartOffset() >= pos && child.getEndOffset() < pos) { index = i; break; } } return index;
    public int getViewIndex(int pos, Position.Bias b)    {      return getElement().getElementIndex(pos);    }