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);
posted @ 2020-04-08 16:12  lqqgis  阅读(643)  评论(0编辑  收藏  举报