public HtmlConstructIterator(HtmlConstruct HtmlConstruct) { this.elements = HtmlConstruct.elements; position = 0; currentIterator = null; }
/// <summary> /// Converts this HtmlTag to html code, including the opening and the closing tag, the tag attributes and the content. /// </summary> /// <returns></returns> public override string ToString() { string o = ""; o += "<" + this._tagName; foreach (HtmlTagAttribute a in _tagAttributes) o += " " + a.ToString(); if (this.isSingleTag) o += @" /"; o += ">"; if (!this.isSingleTag) { o += new HtmlConstruct(this.children).ToString(); o += "</" + this._tagName + ">"; } return o; }