public NodeList(WebBrowser control, nsIDOMNodeList nodeList) : base (control) { if (control.platform != control.enginePlatform) unmanagedNodes = nsDOMNodeList.GetProxy (control, nodeList); else unmanagedNodes = nodeList; }
protected void Clear () { if (nodes != null) { for (int i = 0; i < nodeCount; i++) { nodes[i] = null; } nodeCount = 0; unmanagedNodes = null; nodes = null; } }
public NodeList(WebBrowser control, nsIDOMNodeList nodeList) : base(control) { if (control.platform != control.enginePlatform) { unmanagedNodes = nsDOMNodeList.GetProxy(control, nodeList); } else { unmanagedNodes = nodeList; } }
protected void Clear() { if (nodes != null) { for (int i = 0; i < nodeCount; i++) { nodes[i] = null; } nodeCount = 0; unmanagedNodes = null; nodes = null; } }
/// <summary> /// Returns a set of elements with the given class name. When called on the document object, the complete document is searched, including the root node. /// </summary> /// <param name="classes"></param> /// <returns></returns> public GeckoNodeCollection GetElementsByClassName(string classes) { nsIDOMNodeList list = nsString.Pass <nsIDOMNodeList>(_domDocument.GetElementsByClassName, classes); return(GeckoNodeCollection.Create(list)); }
internal GeckoElementCollection(nsIDOMNodeList list) { this.List = list; }
internal GeckoElementCollection(mozIDOMWindowProxy window, nsIDOMNodeList list) { _window = window; this.List = list; }
protected GeckoNodeCollection(nsIDOMNodeList list) { this.List = list; }
internal static GeckoNodeCollection Create(nsIDOMNodeList list) { return(list == null ? null : new GeckoNodeCollection(list)); }
internal GeckoNodeCollection(nsIDOMNodeList list) { this.List = list; }
internal DomNodeList(nsIDOMNodeList list, Func <TGeckoNode, TWrapper> translator) { _list = list; _translator = translator; }
public DomHtmlCollection(mozIDOMWindowProxy window, /*nsIDOMHTMLCollection*/ nsIDOMNodeList collection, Func <mozIDOMWindowProxy, TGeckoNode, TWrapper> translator) { _window = window; _collection = collection; _translator = translator; }
public static nsIDOMNodeList GetProxy(Mono.WebBrowser.IWebBrowser control, nsIDOMNodeList obj) { object o = Base.GetProxyForObject(control, typeof(nsIDOMNodeList).GUID, obj); return(o as nsIDOMNodeList); }
public static nsIDOMNodeList GetProxy (Mono.WebBrowser.IWebBrowser control, nsIDOMNodeList obj) { object o = Base.GetProxyForObject (control, typeof(nsIDOMNodeList).GUID, obj); return o as nsIDOMNodeList; }
internal Wrapper1(nsIDOMNodeList list) { _list = list; _length = (int)list.GetLengthAttribute(); }
public HTMLElementCollection (WebBrowser control, nsIDOMNodeList nodeList) : base (control, nodeList) { }
protected GeckoNodeCollection(mozIDOMWindowProxy window, nsIDOMNodeList list) { _window = window; _nodeList = new Lazy <NodeList>(() => new NodeList(window, (nsISupports)list)); this.List = list; }
public HTMLElementCollection(WebBrowser control, nsIDOMNodeList nodeList) : base(control, nodeList) { }
internal GeckoNodeEnumerator(mozIDOMWindowProxy window, nsIDOMNodeList list, Func <mozIDOMWindowProxy, TGeckoNode, TWrapper> translator) : this(window, new Wrapper1(window, list), translator) { _window = window; }
internal Wrapper1(mozIDOMWindowProxy window, nsIDOMNodeList list) { _list = list; _length = (int)list.GetLengthAttribute(); }
internal GeckoNodeEnumerator(nsIDOMNodeList list, Func <TGeckoNode, TWrapper> translator) : this(new Wrapper1(list), translator) { }
internal DomNodeList(mozIDOMWindowProxy window, nsIDOMNodeList list, Func <mozIDOMWindowProxy, TGeckoNode, TWrapper> translator) { _window = window; _list = list; _translator = translator; }