« MapInfo中合并图层的解决办法MapXtreme 2008水印处理方案 »

在编辑 Geometry 时,不可用该操作-MapXtreme问题

 c#+mapxtreme开发,在使用OffsetByXY移动图元是,产生如下错误:

system.InvalidOperationException: 在编辑 Geometry 时,不可用该操作。

   at MapInfo.Geometry.FeatureGeometry.get_Centroid()

   at PlanMapSystem.Form1.mapControl1_MouseDown(Object sender, MouseEventArgs e) in d:\visual studio 2003\ht_planmapsystem\planmapsystem\form1.cs:line 5833

   at System.Windows.Forms.MouseEventHandler.Invoke(Object sender, MouseEventArgs e)

   at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)

   at MapInfo.Windows.Controls.MapControl.OnMouseDown(MouseEventArgs mea)

   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)

   at System.Windows.Forms.Control.WndProc(Message& m)

   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)

   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)

   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)