/// <summary> /// 实现ESRI的对象复制方法 /// </summary> /// <param name="pInObject">原始对象</param> /// <param name="pOverwriteObject">复制后的对象</param> public static void ObjectCopy(object pInObject, ref object pOverwriteObject) { IObjectCopy objectCopy = new ObjectCopy(); object copyedObj = objectCopy.Copy(pInObject); objectCopy.Overwrite(copyedObj, ref pOverwriteObject); }
private void method_0(IMap imap_1, IMap imap_2) { IObjectCopy objectCopy = new ObjectCopy(); object pInObject = objectCopy.Copy(imap_1); object obj = imap_2; objectCopy.Overwrite(pInObject, ref obj); }
public static void CopyMap(IMap pMap, IMap targetMap) { IObjectCopy objectCopyClass = new ObjectCopy(); object obj = objectCopyClass.Copy(pMap); object imap1 = targetMap; objectCopyClass.Overwrite(obj, ref imap1); }
public static void CopyMap(IMap imap_0, IMap imap_1) { IObjectCopy copy = new ObjectCopy(); object pInObject = copy.Copy(imap_0); object pOverwriteObject = imap_1; copy.Overwrite(pInObject, ref pOverwriteObject); }
/// <summary> /// 同步布局 /// </summary> public void copyToPageLayout() { IObjectCopy objectCopy = new ObjectCopy(); //对象拷贝接口 object copyFromMap = mapControl.Map; //地图对象 object copyMap = objectCopy.Copy(copyFromMap); //将axMapControl1的地图对象拷贝 object copyToMap = pagelayoutcontrol.ActiveView.FocusMap; //axPageLayoutControl1活动视图中的地图 objectCopy.Overwrite(copyMap, ref copyToMap); //将axMapControl1地图对象覆盖axPageLayout1当前地图 }