ShapeCollection.RemoveAt

ShapeCollection.RemoveAt method

Remove the shape.

public void RemoveAt(int index)
ParameterTypeDescription
indexInt32The index of the shape.

Examples


[C#]
//add first shape
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
//add second shape
shapes.AddRectangle(6, 0, 2, 0, 30, 30);

//remove 
shapes.RemoveAt(0);

See Also