IMapControl2,IMapControl3,IMapControl4是接口;
AxMapControl是控件,并实现了以上接口;
axMapControl1是AxMapControl实例化的对象。
三者关系如下所示:
this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl();
IMapControl2 pMapControl2=axMapControl1.Object;

之所以会出现2,3之类的后缀,是因为随着每次AE的更新升级,会增加一些新的功能,数字越靠后说说明这个接口越新。ESRI是建议使用新接口的。但原来的2或3还不能去掉,因为他要考虑到和以前老版本写代码的兼容性。

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2021-10-23
  • 2021-11-25
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
  • 2021-08-09
  • 2021-12-14
  • 2022-12-23
相关资源
相似解决方案