MapPoint referencePole; // Set elsewhere in application var screenPoint = Map.MapToScreen(referencePole); // Get position of Map Control on screen var locationFromScreen = Map.PointToScreen(new System.Windows.Point(0, 0)); // Set cursor based on the above reference point and the location of the MapControl System.Windows.Forms.Cursor.Position = new Point(Convert.ToInt32(locationFromScreen.X + screenPoint .X), Convert.ToInt32(locationFromScreen.Y + screenPoint .Y));
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.