//工具条漫游 private void buttonItemPan_Click(object sender, EventArgs e) { ESRI.ArcGIS.SystemUI.ICommand pCommand; pCommand = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass(); pCommand.OnCreate(MapControlLayer.Object); MapControlLayer.CurrentTool = pCommand as ESRI.ArcGIS.SystemUI.ITool; }
public override void OnClick() { ICommand command = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass();//平移 command.OnCreate(m_mapControl.Object); m_mapControl.CurrentTool = command as ITool;//按钮按下的状态 }
public static void pan() { mainForm.mainform.mainMapControl.CurrentTool = null; ICommand command = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass(); command.OnCreate(mainForm.mainform.mainMapControl.Object); mainForm.mainform.mainMapControl.CurrentTool = command as ITool; }
public void Pan(AxMapControl mapControl) { mapControl.CurrentTool = null; ICommand pCommand = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass(); pCommand.OnCreate(mapControl.Object); mapControl.CurrentTool = pCommand as ITool; }
public override void OnClick() { ICommand command = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass();//ƽ�� command.OnCreate(m_mapControl.Object); m_mapControl.CurrentTool = command as ITool;//��ť���µ�״̬ }
private void toolpan_Click(object sender, EventArgs e)//漫游 { ESRI.ArcGIS.SystemUI.ICommand pCommand = new ESRI.ArcGIS.Controls.ControlsMapPanToolClass(); pCommand.OnCreate(this.axMapControl1.Object); this.axMapControl1.CurrentTool = pCommand as ESRI.ArcGIS.SystemUI.ITool; }