Example #1
0
        public WebBackForwardSubList GetForwardItems(int index)
        {
            System.IntPtr itemPtr = Interop.WebBackForwardList.GetBackwardItems(SwigCPtr, index);
            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }
            WebBackForwardSubList ret = new WebBackForwardSubList(itemPtr, true);

            return(ret);
        }
Example #2
0
        public IList <WebBackForwardListItem> GetForwardItems(int limit)
        {
            System.IntPtr itemPtr = Interop.WebBackForwardList.GetBackwardItems(SwigCPtr, limit);
            if (NDalicPINVOKE.SWIGPendingException.Pending)
            {
                throw NDalicPINVOKE.SWIGPendingException.Retrieve();
            }

            if (forwardItemList != null)
            {
                forwardItemList.Dispose();
            }
            forwardItemList = new WebBackForwardSubList(itemPtr, true);

            List <WebBackForwardListItem> list = new List <WebBackForwardListItem>();

            for (uint i = 0; i < forwardItemList.ItemCount; i++)
            {
                list.Add(forwardItemList.GetItemAtIndex(i));
            }
            return(list);
        }