当前位置: 代码迷 >> GIS >> ArcGIS Engine中怎么才能改变IMapFrame对象的高度和宽度
  详细解决方案

ArcGIS Engine中怎么才能改变IMapFrame对象的高度和宽度

热度:269   发布时间:2016-05-05 06:30:02.0
ArcGIS Engine中如何才能改变IMapFrame对象的高度和宽度
在ArcGis   Engine开发中,我得到了PageLayout中的IMapFrame对象,现在我想改变它的高度和宽度,如高度值为100cm,宽度值为80cm,怎么做呢?

------解决方案--------------------
如果你要改变布局大小的话可以通过IElement接口实现,因为mapframe本身就是一个element:
Dim pele As IElement
Dim pEnv As IEnvelope
Set pEnv = New Envelope
pEnv.PutCoords 0, 0, 2, 2
Set pele = pMapFrame
pele.Geometry = pEnv
pDoc.ActiveView.Refresh
  相关解决方案