shapeIndex(shape, [new_index])

Class: Window. Method inherited from ShapeContainer.

Description:

Gets an index of a specified Shape object or sets a new index making the Shape change its layer index position.

Parameters:

Name Type Description

shape

Shape

Shape object in question

[new_index]

number

The new index to assign to the Shape. Moves the Shape in z-order.

Returns:

Returns an index of the Shape or -1 if only first argument is passed, or this component index if new_index is passed.

Type: number

Throws: