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

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

            throw new NotSupportedException();
        }