用ICommand接口
如复制:
private void Button1_Click(object sender, EventArgs e)
 {
 ICommand cmd = new ESRI.ArcGIS.Controls.ControlsEditingCopyCommandClass();
 if (axMapControl1 != null)
 {
 cmd.OnCreate(axMapControl1.Object);
 cmd.OnClick();
 if (cmd is ESRI.ArcGIS.SystemUI.ITool)
 {
 axMapControl1.CurrentTool = cmd as ESRI.ArcGIS.SystemUI.ITool;
 }
 }
 }

 

相关文章:

  • 2021-08-19
  • 2021-11-28
  • 2021-07-27
  • 2022-01-03
  • 2022-01-30
  • 2021-07-29
  • 2022-02-03
  • 2022-02-17
猜你喜欢
  • 2022-12-23
  • 2022-02-02
  • 2022-12-23
  • 2021-12-12
  • 2021-10-20
  • 2021-08-19
相关资源
相似解决方案