This documentation is for the old version. Go to the latest Graphics Mill docs

Collection.indexOf Method

Searches for the specified item and returns the zero-based index of the first occurrence within the entire collection.

Namespace: Aurigma.GraphicsMill.AjaxControls.VectorObjects
Assembly: Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.dll)

Syntax

Java Script
function indexOf(item);

Parameters

item

Type: Global.Type

The item to locate in the collection.

Return Value

The zero-based index of the first occurrence of item within the entire collection, if found; otherwise, -1.

Remarks

This method corresponds to Collection.IndexOf(T) server-side member.

See Also

Reference