getShape method

getShape(index, isDeep)

Returns an Nth child Shape node.

getShape(index: number, isDeep: boolean)
ParameterTypeDescription
indexnumberZero based index of the child Shape node to select. Negative indexes are also allowed and indicate access from the end, that is -1 means the last node.
isDeepbooleantrue to select from all child nodes recursively; false to select only among immediate children.

Remarks

If index is out of range, a null is returned.

Returns

The child Shape node or null if no matching node is found.

See Also