當前位置:成語大全網 - 成語詞典 - 幫忙翻譯壹下,謝謝~

幫忙翻譯壹下,謝謝~

私人無效axMapControl1_OnMouseDown (對象發件人, ESRI.ArcGIS.Controls.IMapControlEvents2_OnMouseDownEvent英文)

/ /如果左手鼠標按鈕

如果( e.button == 1 )

/ /創建壹個點,抓的IPoint接口

IPoint點=新PointClass ( ) ;

/ /設置點屬性

point.X = e.mapX ;

point.Y = e.mapY ;

/ /如果這是第壹點的壹個新行

如果( m_Polyline ==空)

/ /創建形式的私人折線成員國和掌握的IPolyline接口

m_Polyline =新PolylineClass ( ) ;

/ /漆的IPointsCollection界面使用界面IPolyline

對象? = Type.Missing ;

/ /對象01 = m_PointCollection.PointCount - 1 ;

m_PointCollection = ( IPointCollection ) m_Polyline ;

m_PointCollection.AddPoint (點,參考鄰,裁判o )項;

/ /刷新前臺從而消除任何文字註釋

axMapControl1.Refresh ( esriViewDrawPhase.esriViewForeground , Type.Missing , Type.Missing ) ;

其他

/ /如果權利或鼠標中鍵放大到用戶定義的矩形

/ /創建壹個信封和掌握的IEnvelope接口

IEnvelope信封= axMapControl1.TrackRectangle ( ) ;

/ /如果用戶拖出壹個矩形

如果(信封! =無效)

/ /設置地圖的控制範圍內的財產

axMapControl1.Extent =信封;