|
002、获取选择图元的信息 ISession session = MapInfo.Engine.Session.Current; Table tableUsa = session.Catalog["SHENGHUI"]; // Get fc for selection on usa. IResultSetFeatureCollection fc = session.Selections.DefaultSelection[tableUsa]; int nCount=0; if (fc != null) { nCount = fc.Count; ......//可以读取每个fc的信息 }
|