removeShape(index_or_shape)

Class: Panel.

Description:

Removes a specified Shape, then the removed Shape is returned.

Parameters:

Name Type Description

index_or_shape

number | Shape

Shape or index of the Shape to be removed.

Returns:

Returns removed Shape, or false in case when index is invalid or out of bounds.

Type: Shape | boolean