GetLayerNoByName

<< Click to Display Table of Contents >>

Navigation:  MyCAD > Methods >

GetLayerNoByName

public Int32 GetLayerNoByName(String layerName)

 

Description:

 Get the layer no by layer name.

 

Parameter:

 layerName: The layer name

 

Return value:

 Return value =-1,get layer no unsuccessfully.

 Return value >=0,get layer no successfully,the value is the layer no.

 

Example:

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

 {

         Int32 layerNo = myCAD1.GetLayerNoByName("Layer0");

 }