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

            if (aList.Count == 0)
            {
                return(null);
            }
            return(aList[aList.Count - 1].allocatedTag);
        }
Esempio 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();
        }
Esempio 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);
        }