DeleteLayerByName

Top  Previous  Next

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.

 

 

 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