UngroupShape

<< Click to Display Table of Contents >>

Navigation:  MyCAD > Methods >

UngroupShape

public void UngroupShape(MyShape tmpShape,Boolean needSaved)

 

Description:

 Ungroup the shape.

 

Parameter:

 tmpShape: The grouped shape

 needSave: Weather save step to undo list

 

Example:

 private void menuEditUngroup_Click(object sender, System.EventArgs e)

 {

 

         if (myCAD1.GetSelectedShapesCount() == 1)

         {

                 myCAD1.UngroupShape(myCAD1.GetSelectedShape(),true);

         }

         else

         {

                 MessageBox.Show("No shape selected or more shapes selected.");

         }

 }

 

See also:

 GroupWorkingShapes