DeleteLayerByName

<< Click to Display Table of Contents >>

Navigation:  MyCAD > Methods >

DeleteLayerByName

public Boolean DeleteLayerByName(String layerName)

 

Description:

 Delete layer by the layer's name, if layerName not matched, it returns false. this function will delete shape(s) which belonged this layer.

 

Parameter:

 layerName: Layer name

 

Return value:

 true: Delete successfully

 false: Delete unsuccessfully

 

Example:

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

 {

         myCAD1.DeleteLayerByName("Layer0");

 }

 

See also:

 DeleteLayerById