『公告』 预祝您龙年大吉,万事如意, 过节期间, 大家如需数据服务,请拨打400 或直接添加客服微信,再祝大家龙年,心想事成。
关注我们 新浪 腾讯

ArcGIS Engine 10 开发手册(3-4)庖丁解牛识控件

ArcGIS Engine 10 开发手册(3-4)庖丁解牛识控件
ArcGIS Engine 中提供了很多的控件,这些控件和 ArcMap 中的一些东西有对应关系的:

     ArcGIS Engine 中提供了很多的控件,这些控件和 ArcMap 中的一些东西有对应关系的:

 

 


    ArcGIS Engine 中的 MapControl 控件和 PageLayoutControl 控件分别对应于 ArcMap 中的数据视图和布 局视图,MapControl 控件主要用于空间数据的显示和分析,它封装了地图对象,而 PageLayoutControl 控件 是用于地图的修饰和整理,可以用来生成专题图等,它封装了 PageLayout 对象。

 

    TOCControl 控件和 ToolbarControl 控件分别对应 ArcMap 中的 Table of Contents 控件和工具条控件,这 两个控件都有一个 buddy 属性,这两个控件需要和一个伙伴空间协同工作,伙伴控件可以是 MapControl PageLayoutControSceneControl 或者 globeControl 控件。

 

if (pMapDocument.get_IsMapDocument (path))

{

  pMapDocument.Open (path, null);

  IMap pMap;

  for (int i = 0; i & lt; = pMapDocument.MapCount - 1; i++)

  {

    pMap = pMapDocument.get_Map (i);

    Console.WriteLine (pMap.Name);

    IEnumLayer pEnumLayer = pMap.get_Layers (null, true);

    pEnumLayer.Reset ();

    ILayer pLayer = pEnumLayer.Next ();

    while (pLayer != null)

    {

      Console.WriteLine (pLayer.Name);

      pLayer = pEnumLayer.Next ();

    }

  }

}

      京ICP备2025132830号-1 京公网安备 号