Returns the index of the attached viewRef.
viewRef
Returns -1 if this container doesn't contain the provided view.
-1
int indexOf(ViewRef viewRef);