private void axPageLayoutControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IPageLayoutControlEvents_OnMouseDownEvent e)
{
if (e. button == 1) return;

//Create an envelope by tracking a rectangle
IEnvelope envelope = axPageLayoutControl1.TrackRectangle();

//Create a map frame element with a new map
IMapFrame mapFrame = new MapFrameClass();
mapFrame.Map = new MapClass();

//Add the map frame to the PageLayoutControl with specified geometry
axPageLayoutControl1.AddElement((IElement)mapFrame, envelope, null, null, 0);
//Refresh the PageLayoutControl
axPageLayoutControl1.Refresh(esriViewDrawPhase.esriViewGraphics, null, null);
}

最新文章

  1. Django自定义模板
  2. win7系统.LNK类型文件打开方式的修复办法
  3. C#中messagebox用法
  4. 有关按位DP
  5. 同样的一句SQL语句在pl/sql 代码块中count 没有数据,但是直接用SQl 执行却可以count 得到结果
  6. c语言中函数的简单介绍
  7. 关于@synchronized(self)的用法
  8. iOS横向瀑布流的封装
  9. HTML基础学习(二)—CSS
  10. 打字机效果-so easy
  11. 如何控制input框!
  12. 一些比较隐秘的OJ的网址
  13. 【前端】wangEditor(富文本编辑器) 简易使用示例
  14. CentOS下添加用户并且让用户获得root权限
  15. java中 16进制字符串 与普通字符串 与 byte数组 之间的转化
  16. <构建之法>第三10、11、12章
  17. 强大的shell(一键redis,mysql,php,openresty,jdk)
  18. Perl之my与local
  19. Linux命令(补充)
  20. UVA11538 Chess Queen

热门文章

  1. Github只下载某一目录的文件
  2. 初始化css文件
  3. (转)测试rootvg卷组的镜像的官方做法
  4. 初学者必知的Python中优雅的用法 分类: Python 2015-05-11 15:02 782人阅读 评论(0) 收藏
  5. DotNetOpenAuth 服务端搭建
  6. Android 开发工具类 07_ScreenUtils
  7. 【转】Spark:一个高效的分布式计算系统
  8. idea 错误: -source 1.6 中不支持 diamond 运算符的解决办法
  9. 13-hadoop-入门程序
  10. 6-nginx-会话一致性解决(sesion一致)