/// <summary> /// 获取与事件相关联的地图 /// </summary> /// <param name=""></param> /// <returns>地图</returns> public EarthView.World.Spatial.Carto.Ielement GetElement() { IntPtr __ptr = EarthView_World_Spatial_SystemUI_CLayoutOperationEvent_getElement_IElement(this.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Spatial.Carto.Ielement csObj = new EarthView.World.Spatial.Carto.Ielement(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "IElement"); csObj.Delegate = true; IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Spatial.Carto.Ielement; csObj.BindNativeObject(__ptr, "IElement"); csObj.Delegate = true; } return(csObj); }
/// <summary> /// 设置地图操作的map对象 /// </summary> /// <param name="map">地图指针</param> /// <returns></returns> public void SetElement(EarthView.World.Spatial.Carto.Ielement pElement) { EarthView_World_Spatial_SystemUI_CLayoutOperationEvent_setElement_void_IElement(this.NativeObject, object.Equals(pElement, null) ? IntPtr.Zero : pElement.NativeObject); }