// can we convert this to AttachSpriteTo<T> ? :) public static IHTMLElement AttachSpriteTo(this Sprite e, INode parent) { var i = e.ToHTMLElement(); parent.appendChild(i); return i; }
public static IHTMLElement AttachAppletTo(this Applet e, INode parent) { var i = e.ToHTMLElement(); parent.appendChild(i); return i; }
public static void StreamLoremIpsum(INode e) { e.appendChild(new IHTMLSpan(LoremIpsum)); }
public void AttachTo(INode e) { e.appendChild(Element); }
public static IHTMLElement AttachTo(this XElement value, INode e = null) { if (e == null) e = Native.Document.body; var c = default(IHTMLDiv); if (e.ownerDocument != null) { c = (IHTMLDiv)e.ownerDocument.createElement("div"); } else { c = new IHTMLDiv(); } c.innerHTML = value.ToString(); var x = c.firstChild; //Console.WriteLine("attach xml"); e.appendChild(x); return (IHTMLElement)x; }