Returns the index of the specified component.
Parameters:
c
Component
Returns: an integer giving the component's position, where 0 is first; or -1 if it can't be found
Diagram: Menu