Example #1
0
        public object createElement(string tagName)
        {
            if (tagName == "canvas") {
                if (this.canvas == null) {
                    this.canvas = new HTMLCanvasElement(this.ownerDocument.defaultView);
                }
                return this.canvas;
            }

            throw new NotSupportedException();
        }
Example #2
0
        public object createElement(string tagName)
        {
            if (tagName == "canvas")
            {
                if (this.canvas == null)
                {
                    this.canvas = new HTMLCanvasElement(this.ownerDocument.defaultView);
                }
                return(this.canvas);
            }

            throw new NotSupportedException();
        }
 internal HTMLCanvasElementWrapper(HTMLCanvasElement canvas)
 {
     this.canvas = canvas;
 }
 internal HTMLCanvasElementWrapper(HTMLCanvasElement canvas)
 {
     this.canvas = canvas;
 }