arcengine加载模板时实现比例尺与地图的同步
IGraphicsContainer container = axPageLayoutControl1.PageLayout as IGraphicsContainer;
IMap map = axPageLayoutControl1.ActiveView.FocusMap;
container.Reset();
IElement element = container.Next();
while (element != null)
{
if (element is IMapSurroundFrame)
{
IMapSurroundFrame mapSurroundFrame = element as IMapSurroundFrame;
IMapSurround mapSurround = mapSurroundFrame.MapSurround;
mapSurround.Map = map;
}
element = container.Next();
}