<< Click to Display Table of Contents >> GetLayerIdByName |
public Int32 GetLayerIdByName(String layerName)
Description:
Get the layer id by layer name.
Parameter:
layerName: The layer name
Return value:
Return value =-1,get layer id unsuccessfully.
Return value >=0,get layer id successfully,the value is the layer id.
Example:
private void button1_Click(object sender, System.EventArgs e)
{
Int32 layerId = myCAD1.GetLayerIdByName("Layer0");
}
See also: