首页 > TAG信息列表 > activeView

缩放到图层,缩放到要素

public static void ZoomToLayer(IActiveView pActiveView, ILayer pLayer,double pading) { pActiveView.Extent = ((IGeoDataset)pLayer).Extent; pActiveView.Extent.Width += pading; pActiveView.Extent.Height += pading;

修改比例尺

//修改比例尺 [DllImport("User32.dll")] public static extern int GetDesktopWindow(); public static void ChangeMapScale(double scale) { //mapDocument.Open(@"C:\Temp\foo.mxd", null);