1 IPoint mapPnt; 2 int xpixels=0,ypixels=0; 3 MapControl.FromMapPoint(mapPnt, ref xpixels, ref ypixels); 4 IPoint pagePnt = PageLayoutControl.ToPagePoint(xpixels, ypixels);
时间: 2024-12-20 00:34:20
1 IPoint mapPnt; 2 int xpixels=0,ypixels=0; 3 MapControl.FromMapPoint(mapPnt, ref xpixels, ref ypixels); 4 IPoint pagePnt = PageLayoutControl.ToPagePoint(xpixels, ypixels);