AE 中的IMapControl (3)

本文介绍了IMapControl3接口的功能及使用方法,包括如何添加图层、设置地图范围、旋转地图等操作。此外还提供了如何利用该接口进行地图文档加载、地图外观定制等功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Provides access to members that control the MapControl.

Product Availability
Available with ArcGIS Engine.
Description

The IMapControl3 interface provides additional members for tasks related to the MapControl, such as setting a custom property and suppressing data redraw whilst the MapControl is being resized.
 

Members
 Description
MethodAboutBoxDisplays a dialog of information about the MapControl.
MethodAboutBoxDisplays a dialog of information about the MapControl.
Read-only propertyActiveViewThe active view of the Map contained by the MapControl.
Read-only propertyActiveViewThe active view of the Map contained by the MapControl.
MethodAddLayerAdds a layer to the Map's collection of layers at the specified index position.
MethodAddLayerAdds a layer to the Map's collection of layers at the specified index position.
MethodAddLayerFromFileLoads a layer file and adds it to the Map's collection of layers at the specified index position.
MethodAddLayerFromFileLoads a layer file and adds it to the Map's collection of layers at the specified index position.
MethodAddShapeFileAdds a shapefile as a layer to the Map.
MethodAddShapeFileAdds a shapefile as a layer to the Map.
Read/write propertyAppearanceThe appearance of the MapControl.
Read/write propertyAppearanceThe appearance of the MapControl.
Read/write propertyBackColorBackground color of the MapControl.
Read/write propertyBackColorBackground color of the MapControl.
Read/write propertyBorderStyleThe border style of the MapControl.
Read/write propertyBorderStyleThe border style of the MapControl.
MethodCenterAtMoves the center of the MapControl to the specified location.
MethodCenterAtMoves the center of the MapControl to the specified location.
MethodCheckMxFileChecks the specified filename to see if it is a map document that can be loaded into the MapControl.
MethodCheckMxFileChecks the specified filename to see if it is a map document that can be loaded into the MapControl.
MethodClearLayersRemoves all layers from the Map.
MethodClearLayersRemoves all layers from the Map.
Read/write propertyCurrentToolCurrent active tool for the MapControl. Set to nothing to clear the tool.
Read/write propertyCurrentToolCurrent active tool for the MapControl. Set to nothing to clear the tool.
Read/write propertyCustomPropertyA property to associate data with a control.
MethodDeleteLayerRemoves a Layer from the Map's collection of layers at the specified index position.
MethodDeleteLayerRemoves a Layer from the Map's collection of layers at the specified index position.
Read/write propertyDocumentFilenameThe filename of the last map document loaded into the control.
Read/write propertyDocumentMapThe name of the map that was last loaded into the control from a map document.
MethodDrawShapeDraws a geometry shape on the MapControl.
MethodDrawShapeDraws a geometry shape on the MapControl.
MethodDrawTextDraws text along the supplied geometry.
MethodDrawTextDraws text along the supplied geometry.
Read/write propertyEnabledIndicates whether the MapControl can respond to user generated events.
Read/write propertyEnabledIndicates whether the MapControl can respond to user generated events.
Read/write propertyExtentCurrent extent of the Map in map units.
Read/write propertyExtentCurrent extent of the Map in map units.
MethodFlashShapeFlashes a shape on the MapControl, duration is in milliseconds.
MethodFlashShapeFlashes a shape on the MapControl, duration is in milliseconds.
MethodFromMapPointConverts a point on the Map (in map units) to device co-ordinates (typically pixels).
MethodFromMapPointConverts a point on the Map (in map units) to device co-ordinates (typically pixels).
Read/write propertyFullExtentRectangular shape that encloses all features of all layers in the Map.
Read/write propertyFullExtentRectangular shape that encloses all features of all layers in the Map.
Read-only propertyhWndHandle to the window associated with the MapControl.
Read-only propertyhWndHandle to the window associated with the MapControl.
Read/write propertyKeyInterceptA property that specifies interception of key strokes that are normally handled by the container. When intercepted the OnKeyDown and OnKeyUp events will be called. This value can be a combined bit mask of esriKeyIntercept enum values.
Read-only propertyLayerLayer at the supplied index.
Read-only propertyLayerLayer at the supplied index.
Read-only propertyLayerCountNumber of layers in the Map.
Read-only propertyLayerCountNumber of layers in the Map.
MethodLoadMxFileLoads the specified Map from the map document into the MapControl. The Map can be an index or a name, if it is not supplied the focus map is used.
MethodLoadMxFileLoads the specified Map from the map document into the MapControl. The Map can be an index or a name, if it is not supplied the focus map is used.
Read/write propertyMapThe Map contained by the MapControl.
Read/write propertyMapThe Map contained by the MapControl.
Read/write propertyMapScaleScale of the map as a representative fraction.
Read/write propertyMapScaleScale of the map as a representative fraction.
Read/write propertyMapUnitsThe geographical units of the map.
Read/write propertyMapUnitsThe geographical units of the map.
Read/write propertyMouseIconCustom mouse icon used if MousePointer is 99.
Read/write propertyMouseIconCustom mouse icon used if MousePointer is 99.
Read/write propertyMousePointerThe mouse pointer displayed over the MapControl.
Read/write propertyMousePointerThe mouse pointer displayed over the MapControl.
MethodMoveLayerToMoves a layer within the Map's collection from its current index position to a new index position.
MethodMoveLayerToMoves a layer within the Map's collection from its current index position to a new index position.
Read-only propertyObjectA property that returns the underlying control. This can be used when the control is inside a wrapper object that has been added by a development environment.
Read/write propertyOleDropEnabledIndicates if the MapControl will fire events when data is dragged over the control's window.
Read/write propertyOleDropEnabledIndicates if the MapControl will fire events when data is dragged over the control's window.
MethodPanTracks the mouse while panning the MapControl.
MethodPanTracks the mouse while panning the MapControl.
MethodReadMxMapsOpens a map document specified by the supplied filename and reads the maps into an array object.
MethodReadMxMapsOpens a map document specified by the supplied filename and reads the maps into an array object.
Read/write propertyReferenceScaleReference scale of the Map as a representative fraction.
Read/write propertyReferenceScaleReference scale of the Map as a representative fraction.
MethodRefreshRedraws the Map, optionally just redraw specified phases or envelope.
MethodRefreshRedraws the Map, optionally just redraw specified phases or envelope.
Read/write propertyRotationDetermines how many degrees the map display is rotated.
Read/write propertyRotationDetermines how many degrees the map display is rotated.
Read/write propertyShowMapTipsIndicates if map tips are shown.
Read/write propertyShowScrollbarsIndicates whether or not the Map's scrollbars are visible.
Read/write propertyShowScrollbarsIndicates whether or not the Map's scrollbars are visible.
Read/write propertySpatialReferenceSpatial reference of the Map.
Read/write propertySpatialReferenceSpatial reference of the Map.
MethodSuppressResizeDrawingSuppress full redraw of control during resize operations.
Read/write propertyTipDelayThe delay before map tips are shown.
Read/write propertyTipStyleThe style of map tips.
MethodToMapPointConverts a point in device co-ordinates (typically pixels) to a point on the Map (in map units).
MethodToMapPointConverts a point in device co-ordinates (typically pixels) to a point on the Map (in map units).
Read/write propertyTrackCancelThe object used by the MapControl to check if drawing has been aborted.
Read/write propertyTrackCancelThe object used by the MapControl to check if drawing has been aborted.
MethodTrackCircleRubber-bands a circle on the MapControl.
MethodTrackCircleRubber-bands a circle on the MapControl.
MethodTrackLineRubber-bands a polyline on the MapControl.
MethodTrackLineRubber-bands a polyline on the MapControl.
MethodTrackPolygonRubber-bands a polygon on the MapControl.
MethodTrackPolygonRubber-bands a polygon on the MapControl.
MethodTrackRectangleRubber-bands a rectangle on the MapControl.
MethodTrackRectangleRubber-bands a rectangle on the MapControl.
Write-only propertyVisibleRegionThe geometry specifying the visible region of the Map.
Write-only propertyVisibleRegionThe geometry specifying the visible region of the Map.

Classes that implement IMapControl3
ClassesDescription
MapControlESRI MapControl

When querying interface to IMapControl3 in Visual Basic .NET or Visual C# .NET the Object property or container specific code must be used. This is because .NET contains the real control inside a wrapper object known as an host.

IMapControl3 mapControl = axMapControl1.Object as IMapControl3;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值