internal HtmlTag FirstTag() { AllocatedList aList = TagList(); if (aList.Count == 0) { return(null); } return(aList[aList.Count - 1].allocatedTag); }
/// <summary> /// Constructor /// </summary> internal SpaceAllocator(RegionTag anOwnerTag) { ownerTag = anOwnerTag; allocList = new AllocatedList(); floatList = new AllocatedList(); lineInfo = new LineInfoList(); lineInfo.Clear(); currentLine = -1; currentX = 0; currentY = 0; NewLine(); }
/// <summary> /// Return a list of allocatedItem in current line /// </summary> public AllocatedList TagList() { AllocatedList retVal = new AllocatedList(); foreach (anAllocatedItem item in spaceAlloc.allocList) { if (item.currentLine == lineNumber) { retVal.Add(item); } } return(retVal); }