private void btnFullExtent_MapControl_Click(object sender, EventArgs e)
        {
            ControlsMapFullExtentCommand pCommand = new ESRI.ArcGIS.Controls.ControlsMapFullExtentCommand();

            pCommand.OnCreate(MapControl.Object);
            pCommand.OnClick();
        }
Beispiel #2
0
        //全局显示
        public static void FullExtend(ESRI.ArcGIS.Controls.AxMapControl axMapControl)
        {
            if (axMapControl == null)
            {
                return;
            }
            ICommand pCommand;

            pCommand = new ESRI.ArcGIS.Controls.ControlsMapFullExtentCommand();
            pCommand.OnCreate(axMapControl.Object);
            pCommand.OnClick();
        }
 //全局显示
 public static void FullExtend(ESRI.ArcGIS.Controls.AxMapControl axMapControl)
 {
     if (axMapControl == null)
     {
         return;
     }
     ICommand pCommand;
     pCommand = new ESRI.ArcGIS.Controls.ControlsMapFullExtentCommand();
     pCommand.OnCreate(axMapControl.Object);
     pCommand.OnClick();
 }