码迷,mamicode.com
首页 > Windows程序 > 详细

c# axPageLayoutControl 加数据框

时间:2015-09-22 07:43:37      阅读:354      评论:0      收藏:0      [点我收藏+]

标签:

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);
}

c# axPageLayoutControl 加数据框

标签:

原文地址:http://www.cnblogs.com/gisoracle/p/4827851.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!