DeleteShapeByID

<< Click to Display Table of Contents >>

Navigation:  TMyCAD > Methods >

DeleteShapeByID

 

function DeleteShapeByID(ShapeID:Integer):Boolean;

 

 

 

 

Description:

 

     Delete a shape or  a grouped shape, Shape's ID , start from zero ;when you delete one or more shapes, the shapeId will not be chaged.

 

 

Sample:

 

procedure Form1.Button1Click(Send:TObject)

begin

 DeleteShapeByID(1)

end;

 

Return Value:

    true : delete  success

   false : delete  failed

 

See Also:

 

DeleteSelectedShape

DeleteAllShapes