public virtual GeckoHtmlElement this[int index]
        {
            get
            {
                if (index < 0 || index >= Length)
                {
                    throw new ArgumentOutOfRangeException("index");
                }

                return(GeckoHtmlElement.Create((nsIDOMHTMLElement)List.Item((uint)index)));
            }
        }
예제 #2
0
        public virtual GeckoNode this[int index]
        {
            get
            {
                if (index < 0 || index >= Length)
                {
                    throw new ArgumentOutOfRangeException("index");
                }

                return(GeckoNode.Create(List.Item((uint)index)));
            }
        }
예제 #3
0
 public TWrapper this[uint index]
 {
     get
     {
         var item = _collection.Item(index);
         var node = item as TGeckoNode;
         return(node?.Wrap(_window, _translator));
     }
 }
예제 #4
0
        public virtual GeckoHtmlElement this[uint index]
        {
            get
            {
                if (index >= Length)
                {
                    throw new ArgumentOutOfRangeException(nameof(index));
                }

                return((GeckoHtmlElement)GeckoNode.Create(_window, List.Item(index)));
            }
        }
 public TWrapper this[int index]
 {
     get
     {
         var item = _list.Item((uint)index);
         if (item is TGeckoNode)
         {
             return(((TGeckoNode)item).Wrap(_translator));
         }
         return(null);
     }
 }
예제 #6
0
 public TWrapper this[int index]
 {
     get
     {
         var item = _list.Item((uint)index);
         if (item is TGeckoNode)
         {
             return(Gecko.Interop.ExtensionMethods.Wrap(((TGeckoNode)item), _translator));
         }
         return(null);
     }
 }
 public override nsIDOMNode Item(uint index)
 {
     return(_list.Item(index));
 }