A document range that specifies a span tag, and any embedded tags.
Inheritance: DocumentRange
コード例 #1
0
        /// <summary>
        /// Called by loadContents to load a span.
        /// </summary>
        /// <param name="index">The index to begin loading at.</param>
        /// <param name="tag">The beginning tag.</param>
        private void LoadSpan(int index, Tag tag)
        {
            var span = new Span(_page);
            String classAttribute = tag.GetAttributeValue("class");
            String idAttribute = tag.GetAttributeValue("id");

            span.IdAttribute = idAttribute;
            span.ClassAttribute = classAttribute;
            span.Begin = index;
            span.End = FindEndTag(index + 1, tag);
            AddHierarchyElement(span);
        }
コード例 #2
0
ファイル: LoadWebPage.cs プロジェクト: neismit/emds
 private void xc4283bf79484a931(int xc0c4c459c6ccbd00, Tag xffe521cc76054baf)
 {
     Span span = new Span(this._xbbe2f7d7c86e0379);
     string attributeValue = xffe521cc76054baf.GetAttributeValue("class");
     string str2 = xffe521cc76054baf.GetAttributeValue("id");
     span.IdAttribute = str2;
     span.ClassAttribute = attributeValue;
     if (((uint) xc0c4c459c6ccbd00) >= 0)
     {
         span.Begin = xc0c4c459c6ccbd00;
         span.End = this.FindEndTag(xc0c4c459c6ccbd00 + 1, xffe521cc76054baf);
     }
     this.x9d4db4971b8e4b59(span);
 }