AE 中的IMapControl (2)

Provides access to members that control the MapControl. Note: the IMapControl2 interface has been superseded by IMapControl3. Please consider using the more recent version.

Product Availability
Available with ArcGIS Engine.
Description

The IMapControl2 interface is a starting point for any tasks related to the MapControl, such as setting general appearance, setting map and display properties, adding and managing data layers and map documents, and drawing and tracking shapes.

Members
 Description
MethodAboutBoxDisplays a dialog of information about 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.
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.
Read/write propertyAppearanceThe appearance of the MapControl.
Read/write propertyBackColorBackground color of the MapControl.
Read/write propertyBorderStyleThe border style of the MapControl.
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.
MethodClearLayersRemoves all layers from the Map.
Read/write propertyCurrentToolCurrent active tool for the MapControl. Set to nothing to clear the tool.
MethodDeleteLayerRemoves a Layer from the Map's collection of layers at the specified index position.
MethodDrawShapeDraws a geometry shape on the MapControl.
MethodDrawTextDraws text along the supplied geometry.
Read/write propertyEnabledIndicates whether the MapControl can respond to user generated events.
Read/write propertyExtentCurrent extent of the Map in map units.
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).
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 propertyLayerLayer at the supplied index.
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.
Read/write propertyMapThe Map contained by the MapControl.
Read/write propertyMapScaleScale of the map as a representative fraction.
Read/write propertyMapUnitsThe geographical units of the map.
Read/write propertyMouseIconCustom mouse icon used if MousePointer is 99.
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.
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.
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.
MethodRefreshRedraws the Map, optionally just redraw specified phases or envelope.
Read/write propertyRotationDetermines how many degrees the map display is rotated.
Read/write propertyShowScrollbarsIndicates whether or not the Map's scrollbars are visible.
Read/write propertySpatialReferenceSpatial reference of the Map.
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.
MethodTrackCircleRubber-bands a circle on the MapControl.
MethodTrackLineRubber-bands a polyline on the MapControl.
MethodTrackPolygonRubber-bands a polygon on the MapControl.
MethodTrackRectangleRubber-bands a rectangle on the MapControl.
Write-only propertyVisibleRegionThe geometry specifying the visible region of the Map.

Classes that implement IMapControl2
ClassesDescription
MapControlESRI MapControl


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值