Name

Find —

Synopsis

int Find(element);
obj element;

Description

Locates the first element whose value matches the specified object value

Parameters

element

The object value to search for . Note that if the object class type does not match the array element class a typecast will be applied

Returns

The position of the element in the array, or 0 if it was not found

See Also

method.array.Count

Note

In multidimensional arrays the Find method matches entire arrays, not single objects inside arrays.