c# axPageLayoutControl 加数据框
2024-09-24 12:24:11
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);
}
最新文章
- Django自定义模板
- win7系统.LNK类型文件打开方式的修复办法
- C#中messagebox用法
- 有关按位DP
- 同样的一句SQL语句在pl/sql 代码块中count 没有数据,但是直接用SQl 执行却可以count 得到结果
- c语言中函数的简单介绍
- 关于@synchronized(self)的用法
- iOS横向瀑布流的封装
- HTML基础学习(二)—CSS
- 打字机效果-so easy
- 如何控制input框!
- 一些比较隐秘的OJ的网址
- 【前端】wangEditor(富文本编辑器) 简易使用示例
- CentOS下添加用户并且让用户获得root权限
- java中 16进制字符串 与普通字符串 与 byte数组 之间的转化
- <;构建之法>;第三10、11、12章
- 强大的shell(一键redis,mysql,php,openresty,jdk)
- Perl之my与local
- Linux命令(补充)
- UVA11538 Chess Queen
热门文章
- Github只下载某一目录的文件
- 初始化css文件
- (转)测试rootvg卷组的镜像的官方做法
- 初学者必知的Python中优雅的用法 分类: Python 2015-05-11 15:02 782人阅读 评论(0) 收藏
- DotNetOpenAuth 服务端搭建
- Android 开发工具类 07_ScreenUtils
- 【转】Spark:一个高效的分布式计算系统
- idea 错误: -source 1.6 中不支持 diamond 运算符的解决办法
- 13-hadoop-入门程序
- 6-nginx-会话一致性解决(sesion一致)