Ejemplo n.º 1
0
        internal HtmlTag FirstTag()
        {
            AllocatedList aList = TagList();

            if (aList.Count == 0)
            {
                return(null);
            }
            return(aList[aList.Count - 1].allocatedTag);
        }
Ejemplo n.º 2
0
        /// <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();
        }
Ejemplo n.º 3
0
        /// <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);
        }