public object Invoke(string method, IEnumerable <object> arguments) { var result = UnderlyingJSValue.Invoke( method, arguments.Select(Context.ToJSValue).ToArray() ); JSException.ThrowIfSet(Context.UnderlyingJSContext); return(Context.FromJSValue(result)); }
public void SetEndAfter(Node referenceNode) { UnderlyingJSValue.Invoke("setEndAfter", JSValue.From(referenceNode.UnderlyingJSValue, UnderlyingJSValue.Context)); }
public void ScrollIntoView(bool alignToTop = true) { UnderlyingJSValue.Invoke("scrollIntoView", JSValue.From(alignToTop, UnderlyingJSValue.Context)); }
public void RemoveAttribute(string name) { UnderlyingJSValue.Invoke("removeAttribute", JSValue.From(name, UnderlyingJSValue.Context)); }
public bool HasAttribute(string name) { return(UnderlyingJSValue.Invoke("hasAttribute", JSValue.From(name, UnderlyingJSValue.Context)).ToBool()); }
public void Normalize() { UnderlyingJSValue.Invoke("normalize"); }
public void DeleteRule(int index) { UnderlyingJSValue.Invoke("deleteRule", JSValue.From(index, UnderlyingJSValue.Context)); }
public DocumentPosition CompareDocumentPosition(Node other) { return((DocumentPosition)UnderlyingJSValue.Invoke("compareDocumentPosition", JSValue.From(other.UnderlyingJSValue, UnderlyingJSValue.Context)).ToUInt32()); }
public void Click() { UnderlyingJSValue.Invoke("click"); }
public void Blur() { UnderlyingJSValue.Invoke("blur"); }
public void Focus() { UnderlyingJSValue.Invoke("focus"); }
public CssStyleSheet this [int index] { get { return(Wrap <CssStyleSheet> (UnderlyingJSValue.Invoke("item", JSValue.From(index, UnderlyingJSValue.Context)))); } }
public void SelectNode(Node referenceNode) { UnderlyingJSValue.Invoke("selectNode", JSValue.From(referenceNode.UnderlyingJSValue, UnderlyingJSValue.Context)); }
public void DeleteContents() { UnderlyingJSValue.Invoke("deleteContents"); }
public void Collapse(bool toStart = false) { UnderlyingJSValue.Invoke("collapse", JSValue.From(toStart, UnderlyingJSValue.Context)); }
public Node AppendChild(Node child) { return(Wrap <Node> (UnderlyingJSValue.Invoke("appendChild", JSValue.From(child.UnderlyingJSValue, UnderlyingJSValue.Context)))); }
public Node CloneNode(bool deep) { return(Wrap <Node> (UnderlyingJSValue.Invoke("cloneNode", JSValue.From(deep, UnderlyingJSValue.Context)))); }
public void PreventDefault() { UnderlyingJSValue.Invoke("preventDefault"); }
public void InsertRule(string rule, int index) { UnderlyingJSValue.Invoke("insertRule", JSValue.From(rule, UnderlyingJSValue.Context), JSValue.From(index, UnderlyingJSValue.Context)); }
public void StopPropagation() { UnderlyingJSValue.Invoke("stopPropagation"); }
public bool Contains(Element other) { return(UnderlyingJSValue.Invoke("contains", JSValue.From(other.UnderlyingJSValue, UnderlyingJSValue.Context)).ToBool()); }
public bool HasChildNodes() { return(UnderlyingJSValue.Invoke("hasChildNodes").ToBool()); }
public void SetAttribute(string name, string value) { UnderlyingJSValue.Invoke("setAttribute", JSValue.From(name, UnderlyingJSValue.Context), JSValue.From(value, UnderlyingJSValue.Context)); }
public Node InsertBefore(Node newNode, Node referenceNode) { return(Wrap <Node> (UnderlyingJSValue.Invoke("insertBefore", JSValue.From(newNode.UnderlyingJSValue, UnderlyingJSValue.Context), JSValue.From(referenceNode.UnderlyingJSValue, UnderlyingJSValue.Context)))); }
public string GetAttribute(string name) { return(UnderlyingJSValue.Invoke("getAttribute", JSValue.From(name, UnderlyingJSValue.Context)).ToNullableString()); }
public bool IsEqualNode(Node other) { return(UnderlyingJSValue.Invoke("isEqualNode", JSValue.From(other.UnderlyingJSValue, UnderlyingJSValue.Context)).ToBool()); }
public ClientRect GetBoundingClientRect() { return(Wrap <ClientRect> (UnderlyingJSValue.Invoke("getBoundingClientRect"))); }
public Node ReplaceChild(Node newChild, Node oldChild) { return(Wrap <Node> (UnderlyingJSValue.Invoke("replaceChild", JSValue.From(newChild.UnderlyingJSValue, UnderlyingJSValue.Context), JSValue.From(oldChild.UnderlyingJSValue, UnderlyingJSValue.Context)))); }
public void ScrollIntoView(ScrollIntoViewOptions options) { UnderlyingJSValue.Invoke("scrollIntoView", JSValue.From(options, UnderlyingJSValue.Context)); }
public void SetStartBefore(Node referenceNode) { UnderlyingJSValue.Invoke("setStartBefore", JSValue.From(referenceNode.UnderlyingJSValue, UnderlyingJSValue.Context)); }