Returns a index of a element in the collection.
Note this is a linear lookup which is not very efficient. It is though much faster to use this operator than to try to do linear search externally.
VariantCollection Class