IndexOf returns the index value of the custom property with the passed CustPropName.
Returns -1 if the property specified by CustPropName is not found.