public PageSize(EarthView.World.Display.PageSize sz) : base(CreatedWhenConstruct.CWC_NotToCreate) { NameValuePairList list = new NameValuePairList(); BasePtr valuesz = new BasePtr(sz); list.Add("sz", valuesz.PtrVal); Create("CPageSize", list); RegisterCallBack(); this.needDispose = true; GlobalTraceInfoMap.Put(this); }
public EarthView.World.Display.PageSize BoundedTo(EarthView.World.Display.PageSize other) { IntPtr __ptr = EarthView_World_Display_CPageSize_boundedTo_CPageSize_CPageSize(this.NativeObject, object.Equals(other, null) ? IntPtr.Zero : other.NativeObject); if (__ptr == IntPtr.Zero) { return(null); } EarthView.World.Display.PageSize csObj = new EarthView.World.Display.PageSize(CreatedWhenConstruct.CWC_NotToCreate); csObj.BindNativeObject(__ptr, "CPageSize"); IClassFactory csObjClassFactory = GlobalClassFactoryMap.Get(csObj.GetCppInstanceTypeName()); if (csObjClassFactory != null) { csObj.Delegate = true; csObj = csObjClassFactory.Create() as EarthView.World.Display.PageSize; csObj.BindNativeObject(__ptr, "CPageSize"); } return(csObj); }