ArcGIS Engine中的MapControl控件和PageLayoutControl控件分别对应于ArcMap中的数据视图和布局视图,MapControl控件主要用于空间数据的显示和分析,它封装了地图对象,而PageLayoutControl控件是用于地图的修饰和整理,可以用来生成专题图等,它封装了PageLayout对象。
TOCControl控件和ToolbarControl控件分别对应ArcMap中的Table of Contents控件和工具条控件,这两个控件都有一个buddy属性,这两个控件需要和一个伙伴空间协同工作,伙伴控件可以是MapControl,PageLayoutContro,SceneControl或globeControl控件。
第一个控件MapControl
MapControl对应于ArcMap中的数据视图,它封装了Map对象,并提供了额外的属性,方法,事件等。在ArcGIS Engine的帮助文件中,我们可以看到MapControl主要实现了如下接口:
Interfaces
Interfaces | Description |
---|---|
IConnectionPointContainer | Supports connection points for connectable objects. |
IMapControl2 | Provides access to members that control the MapControl. |
IMapControl3 | Provides access to members that control the MapControl. |
IMapControl4 | Provides access to members that control the MapControl. |
IMapControlDefault | Provides access to members that control the MapControl. |
IMxdContents (esriCarto) | Provides access to members to pass data into and out off a MXD map document file. Coclasses that implement this interface can limited the implementation to one property if required. |
IPersist | Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile. |
IPersistStreamInit | Supports initialized stream-based persistence, regardless of whatever else the object does. |
ISupportErrorInfo | Indicates whether a specific interface can return Automation error objects. |
ITOCBuddy | Provides access to members that control the TOC buddy. |
IToolbarBuddy | Provides access to members that control the ToolbarControl buddy. |