GetLayerNoById

Top  Previous  Next

public Int32 GetLayerNoById(Int32 layerId)

 

Description:

 Get the layer no by layer id.

 

Parameter:

 layerId: The layer id

 

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.GetLayerNoById(0);

 }