Example #1
0
        public LayoutItem GetChild(uint childId)
        {
            IntPtr cPtr = LayoutPINVOKE.LayoutGroupWrapperImpl_GetChild(swigCPtr, childId);
            HandleRef CPtrHandleRef = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);

            global::System.IntPtr refObjectPtr = LayoutPINVOKE.LayoutItemPtr_Get(CPtrHandleRef);
            LayoutItem ret = Registry.GetManagedBaseHandleFromRefObject(refObjectPtr) as LayoutItem;

            LayoutPINVOKE.delete_LayoutItemPtr(CPtrHandleRef);
            CPtrHandleRef = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);

            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            return ret;
        }