public override string GetHTML(int deep = 0) { if (!(Summary is null)) { Childs.Insert(0, Summary); } if (open) { SetAttribute("open", null); } return(base.GetHTML(deep)); }
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)); }
public void InsertChild(Node child, int index) { Childs.Insert(index, child); child.Parent = this; }
public void InsertSubLayer(CALayer layer, int index) { Childs.Insert(index, layer); }