Exemplo n.º 1
0
        public override string GetHTML(int deep = 0)
        {
            if (!(Summary is null))
            {
                Childs.Insert(0, Summary);
            }

            if (open)
            {
                SetAttribute("open", null);
            }

            return(base.GetHTML(deep));
        }
Exemplo n.º 2
0
        public override string GetHTML(int deep = 0)
        {
            if (!string.IsNullOrEmpty(form))
            {
                SetAttribute("form", form);
            }

            if (disabled)
            {
                SetAttribute("disabled", null);
            }

            if (!string.IsNullOrEmpty(legend_text))
            {
                Childs.Insert(0, new legend(legend_text));
            }

            return(base.GetHTML(deep));
        }
Exemplo n.º 3
0
 public void InsertChild(Node child, int index)
 {
     Childs.Insert(index, child);
     child.Parent = this;
 }
Exemplo n.º 4
0
 public void InsertSubLayer(CALayer layer, int index)
 {
     Childs.Insert(index, layer);
 }