有两个MapControls,怎样使其中一个保存为.MWS

2015-06-10 10:32:31  访问(1674) 赞(0) 踩(0)

MapInfo.Persistence.WorkSpacePersistence wsp = new MapInfo.Persistence.WorkSpacePersistence();
System.IO.FileStream file = new System.IO.FileStream("C:/temp/Test.mws", System.IO.FileMode.CreateNew);
wsp.Save(this.mapControl2.Map.Clone() as MapInfo.Mapping.Map,file);
file.Close();


标签:有两个MapControls,怎样使其中一个保存为.MWS 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)