在我要实现一个 添加鼠标在地图上点击是默认的选择工具的时候,要用到
this.mapControl1.Tools.LeftButtonTool = "Select"; 这个方法 开始的时候 我把具体的 工具的名称的值给this.mapControl1.Tools.LeftButtonTool ,老是提示 在当前范围无效,最后查资料 (如下:)才恍然大悟!
要将常用 Tool 分配给鼠标 LeftButton、MiddleButton 和 RightButton,则为适当的鼠标按键属性使用以下字符串工具名称:"Arrow"、"ZoomIn"、"ZoomOut"、"Center"、"Pan"、"Select"、"SelectRect"、"SelectRadius"、"SelectPolygon"、
"SelectRegion"、"AddPoint"、"AddLine"、"AddPolyline"、
"AddPolygon"、"AddRectangle"、"AddCircle"、"AddEllipse"、"AddText"、"Label"。