public static void zoom_to_selection() { ICommand pcommand = new ESRI.ArcGIS.Controls.ControlsZoomToSelectedCommandClass(); pcommand.OnCreate(mainForm.mainform.mainMapControl.Object); pcommand.OnClick(); }
private void 缩放到已选范围ToolStripMenuItem_Click(object sender, EventArgs e) { ICommand pCommand; pCommand = new ESRI.ArcGIS.Controls.ControlsZoomToSelectedCommandClass(); pCommand.OnCreate(axMapControl1.Object); pCommand.OnClick(); }