ShapeCollection.DeleteShape

ShapeCollection.DeleteShape method

Delete a shape. If the shape is in the group or is a comment shape, it will not be deleted.

public void DeleteShape(Shape shape)
ParameterTypeDescription
shapeShape

Examples


[C#]
//add first shape
Shape firstShape = shapes.AddRectangle(2, 0, 2, 0, 50, 50);
//add second shape
Shape secondShape = shapes.AddRectangle(6, 0, 2, 0, 30, 30);
//del
shapes.DeleteShape(firstShape);

See Also