ArcGIS Engine布局视图放大、缩小等操作
private void toolStripButton11_Click(object sender, EventArgs e)
{
//1:1显示
axPageLayoutControl1.PageLayout.ZoomToPercent(100);
axPageLayoutControl1.Refresh();
}
private void toolStripButton12_Click(object sender, EventArgs e)
{
//布局全屏
axPageLayoutControl1.PageLayout.ZoomToWhole();
axPageLayoutControl1.Refresh();
}
private void toolStripButton13_Click(object sender, EventArgs e)
{
//布局放大
ICommand PCommand = new ControlsPageZoomInTool();
PCommand.OnCreate(axPageLayoutControl1.Object);
axPageLayoutControl1.CurrentTool = PCommand as ITool;
}
private void toolStripButton14_Click(object sender, EventArgs e)
{
//布局缩小
ICommand PCommand = new ControlsPageZoomOutTool();
PCommand.OnCreate(axPageLayoutControl1.Object);
axPageLayoutControl1.CurrentTool = PCommand as ITool;
}
private void toolStripButton15_Click(object sender, EventArgs e)
{
//布局移屏
ICommand pCommand = new ControlsPagePanTool();
pCommand.OnCreate(axPageLayoutControl1.Object);
axMapControl1.CurrentTool = (ITool)pCommand;
}
private void toolStripButton16_Click(object sender, EventArgs e)
{
//布局上一视图
ICommand pCommand = new ControlsPageZoomPageToLastExtentBackCommand();
pCommand.OnCreate(axPageLayoutControl1.Object);
pCommand.OnClick();
}
private void toolStripButton17_Click(object sender, EventArgs e)
{
//布局下一视图
ICommand pCommand = new ControlsPageZoomPageToLastExtentForwardCommand();
pCommand.OnCreate(axPageLayoutControl1.Object);
pCommand.OnClick();
}