ArcEngine10.2 获得TOCControl控件选中的图层

// 获得在TOCControl控件中选中的图层
esriTOCControlItem item = esriTOCControlItem.esriTOCControlItemNone;
IBasicMap map = null;
ILayer layer = null;
object unk = null;
object data = null;
axTOCControl1.GetSelectedItem(ref item, ref map, ref layer, ref unk, ref data);
原文地址:https://www.cnblogs.com/lqqgis/p/12642566.html