public IHTMLTableRow AddRow(params object[] e)
        {
            IHTMLTableRow r = AddRow();

            foreach (object x in e)
            {
                IHTMLTableColumn c = new IHTMLTableColumn();

                Expando q = Expando.Of(x);

                if (x == null)
                {
                    // do nothing
                }
                else if (q.IsString)
                {
                    c.innerHTML = q.GetValue();
                }
                else
                {
                    c.appendChild(q.To <INode>());
                }

                r.appendChild(c);
            }

            return(r);
        }
Exemplo n.º 2
0
        static IHTMLTableRow InternalConstructor(params INode[] e)
        {
            IHTMLTableRow n = new IHTMLTableRow();

            n.appendChild(e);

            return(n);
        }
Exemplo n.º 3
0
        static IHTMLTableRow InternalConstructor(params INode[] e)
        {
            IHTMLTableRow n = new IHTMLTableRow();

            n.appendChild(e);

            return n;
        }
        public IHTMLTableColumn[] AddRowAsColumns(params INode[] e)
        {
            IHTMLTableColumn[] n = new IHTMLTableColumn[e.Length];

            IHTMLTableRow r = AddRow();

            int i = 0;

            foreach (INode x in e)
            {
                IHTMLTableColumn c = new IHTMLTableColumn();

                n[i++] = c;

                if (x != null)
                {
                    c.appendChild(x);
                }

                r.appendChild(c);
            }

            return(n);
        }