A document range that represents the beginning and ending DIV tag, as well as any tages embedded between them.
Inheritance: DocumentRange
Example #1
0
        /// <summary>
        /// Called by loadContents to load a div tag.
        /// </summary>
        /// <param name="index">The index to begin at.</param>
        /// <param name="tag">The beginning div tag.</param>
        private void LoadDiv(int index, Tag tag)
        {
            var div = new Div(_page);
            String classAttribute = tag.GetAttributeValue("class");
            String idAttribute = tag.GetAttributeValue("id");

            div.IdAttribute = idAttribute;
            div.ClassAttribute = (classAttribute);
            div.Begin = index;
            div.End = FindEndTag(index + 1, tag);
            AddHierarchyElement(div);
        }
Example #2
0
 private void xd333635ed28a1b6d(int xc0c4c459c6ccbd00, Tag xffe521cc76054baf)
 {
     string str;
     Div div = new Div(this._xbbe2f7d7c86e0379);
     if ((((uint) xc0c4c459c6ccbd00) - ((uint) xc0c4c459c6ccbd00)) >= 0)
     {
         str = xffe521cc76054baf.GetAttributeValue("class");
     }
     string attributeValue = xffe521cc76054baf.GetAttributeValue("id");
     div.IdAttribute = attributeValue;
     div.ClassAttribute = str;
     div.Begin = xc0c4c459c6ccbd00;
     div.End = this.FindEndTag(xc0c4c459c6ccbd00 + 1, xffe521cc76054baf);
     do
     {
         this.x9d4db4971b8e4b59(div);
     }
     while (0xff == 0);
 }