对地图赋予指定的工具

来源:互联网 发布:qq申诉软件下载 编辑:程序博客网 时间:2024/06/10 05:55

如何在桌面应用中对地图赋予指定的工具?
答:代码如下:
   mapControl1.Tools.LeftButtonTool = "pan";

MapToolButtonType 枚举:指定 MapToolBarButton 的按钮类型。

成员名 说明
OpenTable 调用 LoadMapWizard。该按钮是推入型按钮。
LayerControl 调用 LayerControlDlg。该按钮是推入型按钮。
Arrow 设置 Arrow 工具。
ZoomIn 设置 ZoomIn 工具。
ZoomOut 设置 ZoomOut 工具。
Center 设置 Center 工具。
Pan 设置 Pan 工具。
Select 设置 Select 工具。
SelectRectangle 设置 SelectRectangle 工具。
SelectRadius 设置 SelectRadius 工具。
SelectPolygon 设置 SelectPolygon 工具。
SelectRegion 设置 SelectRegion 工具。
Label 设置 Label 工具。
AddText 设置 AddText 工具。
AddPoint 设置 AddPoint 工具。
AddLine 设置 AddLine 工具。
AddPolyline 设置 AddPolyline 工具。
AddPolygon 设置 AddPolygon 工具。
AddRectangle 设置 AddRectangle 工具。
AddCircle 设置 AddCircle 工具。
AddEllipse 设置 AddEllipse 工具。

原创粉丝点击