arcgisenginec点击放大示实例代码初学者实现放大缩小的类属性有哪些
发布网友
发布时间:2023-04-23 09:37
我来回答
共1个回答
热心网友
时间:2023-04-25 19:26
//放大
private void menuItem1_Click(object sender, EventArgs e)
{
ICommand Cmd = new ControlsMapZoomInTool();
Cmd.OnCreate(this.axMapControl1.Object);
this.axMapControl1.CurrentTool = Cmd as ITool;
}
//缩小
private void menuItem2_Click(object sender, EventArgs e)
{
ControlsMapZoomOutTool Cmd = new ControlsMapZoomOutTool();
Cmd.OnCreate(this.axMapControl1.Object);
this.axMapControl1.CurrentTool = Cmd as ITool;
}