Esempio n. 1
0
 //工具条全屏
 private void buttonItemFullExtent_Click(object sender, EventArgs e)
 {
     ESRI.ArcGIS.SystemUI.ICommand pCommand;
     pCommand = new ESRI.ArcGIS.Controls.ControlsMapFullExtentCommandClass();
     pCommand.OnCreate(MapControlLayer.Object);
     pCommand.OnClick();
 }
Esempio n. 2
0
        public override void OnClick()
        {
            ICommand command = new ESRI.ArcGIS.Controls.ControlsMapFullExtentCommandClass();//显示地图的全部

            command.OnCreate(m_mapControl.Object);
            command.OnClick();
        }
Esempio n. 3
0
        private void toolextent_Click(object sender, EventArgs e)//全图
        {
            ITool TempTool = this.axMapControl1.CurrentTool;

            ESRI.ArcGIS.SystemUI.ICommand pCommand = new ESRI.ArcGIS.Controls.ControlsMapFullExtentCommandClass();
            pCommand.OnCreate(this.axMapControl1.Object);
            pCommand.OnClick();
            double size = this.axMapControl1.MapScale;

            this.axMapControl1.CurrentTool = TempTool;
        }
Esempio n. 4
0
 public override void OnClick()
 {
     ICommand command = new ESRI.ArcGIS.Controls.ControlsMapFullExtentCommandClass();//��ʾ��ͼ��ȫ��
     command.OnCreate(m_mapControl.Object);
     command.OnClick();
 }